CS161 The Art of Programming

Assignment #5 – Due in at your workshop October 11-13

Turn in hardcopy (handwritten or typed)

Print your name and the name of your workshop leader clearly on the first page!

 

Note that the due date for the programming assignment #4 is extended to Saturday October 10.

 

For the questions below that require writing Python, you only need to turn in you written solution, you are not required to actually run the code. Note that you will need to decide how your program will prompt the user for input, if necessary.

 

Zelle textbook:

 

chapter

page

problem numbers

2

48

4

3

71

1, 3, 4

3

72

(programming exercise) 3

4

115

(multiple choice) 1 to 10

4

116

1, 2, 3

4

118

(programming exercise) 4

4

119

(programming exercise) 5
note: you will need to use the string.split function

Sec. 8.2

261

3(b) and 3(c)