Course Home | Assignments | Computing Resources | Lab Hours/Tutoring | Python | Schedule | Submit

Saint Louis University

Computer Science 1300
Introduction to Object-Oriented Programming

Michael Goldwasser

Spring 2017

Dept. of Math & Computer Science

Homework Assignment 05

While Loops and Functions

Contents:


Overview

Topic: While Loops, Functions
Related Reading: Chapter 5.1-5.3
Due: 11:00am, Friday, 24 February 2017

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.


Michael Goldwasser
CSCI 1300, Spring 2017
Last modified: Saturday, 18 February 2017
Course Home | Assignments | Computing Resources | Lab Hours/Tutoring | Python | Schedule | Submit