Homework Assignment

While Loops and Functions

Contents:


Overview

Topic: While Loops, Functions
Related Reading: Chapter 5.1-5.3
Due:

Please make sure you adhere to the policies on academic integrity.


Problems to be Submitted (18 points)

  1. (6 points)

    Exercise 5.9 on page 196 of the book.

  2. (6 points)

    Write a function acronym(phrase) that accepts a string as a parameter, and returns a new string that includes the first letter of every word in the original phrase, all in uppercase. For example, a call to acronym('Laughing out loud') should return the string 'LOL'.

  3. (6 points)

    Exercise 5.23 on page 199 of the book.


Extra Credit

  1. (2 points)

    Exercise 5.25 on page 199 of the book.


Last modified: Saturday, 18 February 2017