CSC 161 Fall 2019 - Homework 5 (10 pts. total)
Assigned Wed Oct 16, due Mon Oct 21


I. Answer the following questions from the online Fundamentals of Python Programming text in a single Microsoft Word file. Submit on Moodle using the filename hw5-LastName.doc (where LastName is replaced by your last name):
[4 pts.] Read Sections 5.1-5.3 & 5.7. Then, answer questions 2, 3, 13b, and 15g on pages 150-152.
[1 pt.] Read Sections 6.1-6.4. Then, answer question 3(a,b) on page 191.

II. Answer the following question in a Python Editor file. To receive any credit for this question, the filename & your first and last name must appear as comments at the top of the file. Submit on Moodle using the filename hw5-squares-LastName.py (where LastName is replaced by your last name):
[2 pts.] Write a Python program with a for loop that produces the following output:
1 4 9 16 25 36 49 64 81 100

III. Answer the following question from the online Fundamentals of Python Programming text in a Python Editor file. To receive any credit for this question, the filename & your first and last name must appear as comments at the top of the file. Submit on Moodle using the filename hw5-PyThm-LastName.py (where LastName is replaced by your last name):
[3 pts.] Page 191 #4 [MUST show Steps 1-3 of the Software Development Process as commented out lines in your file. Make sure to Run the program on different cases of inputs and make sure you get the expected output in the Shell window in all cases.]





Last Modified: 10/13/19