CSC 160 Fall 2015 - Homework #9 (100 points)
Assigned Nov 30, due MON Dec 7
Assignments submitted on Moodle with time stamps during
class time (Mon or Wed 4:15-5:40pm) will be given a grade of ZERO.
For all Programming Exercises, show steps 1-4 of the Software Development Process
in a module file with the given filename. [Make sure to test before submitting, but don't submit the shell file.]
Chapter 8A (Assigned M 11/30)
Read Sections 8.1-8.3.1 of the textbook.
[10 pts.] Do Discussion Questions #1a,1b on page 261. (filename: ch8Discussion-LASTNAME.doc[20 pts.] Re-do Programming Exercise #11 on page 77 from HW4 so that it uses a while loop. (filename: ch3ex11v2-LASTNAME.py)
[25 pts.] Do Programming Exercise #3 on page 262. (filename: ch8ex3-LASTNAME.py)
Chapter 8B (Assigned W 12/2)
Read Section 8.3.2 of the textbook.
[20 pts.] Write a program for Discussion Question #3c on page 262(top). (filename: ch8dq3b-LASTNAME.py)
[25 pts.] Create a program that asks a user to type in an integer and prints
whether it is even or odd. The program continues to ask the user for another integer until the user presses Enter without typing
an integer. Note that x % 2 == 0 when x is even. (filename: EvenOrOdd-LASTNAME.py)
Last Modified: 12/3/15