CSC 161 Fall 2021 - Homework 12 (10 pts. total)
Assigned Tue Dec 7, due Tue Dec 14
I. Answer the following questions from the Fundamentals of Python Programming text (available on Moodle) in a single Microsoft Word file. Submit on Moodle
using the filename hw12-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 hw12-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 121 144
III. Answer the following question from the Fundamentals of Python Programming textbook (available on Moodle)
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 hw12-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: 12/2/21