CSC 160 Fall 2015 - Homework #8 (100 points)
Assigned Nov 18, due MON Nov 30

  • 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.]
  • Submit all Discussion and Multiple Choice questions in a single file named "Ch7Discussion-LASTNAME"

    Chapter 7A (Assigned W 11/18)
  • Read Sections 7.1-7.3 of the textbook.
  • [14 pts.] Do Multiple Choice Questions #1-7 on page 228.
  • [16 pts.] Do Discussion Questions #2a,2f on pages 229-230. Explain in a sentence or two why the output results from the given code.
  • [20 pts.] Do Programming Exercise #1 on page 230 (filename: ch7ex1-LASTNAME.py)
  • [20 pts.] Do Programming Exercise #3 on page 230 (filename: ch7ex3-LASTNAME.py) [Note: The program should do the same thing as the Extra Credit from HW5 , but now your program needs to be written using control structures, like if.]
  • [30 pts.] Do Programming Exercise #8 on page 231 (filename: ch7ex8-LASTNAME.py) [Hint: Write a function to determine Senate eligibility and another function to determine eligibility to be a US representative in the House (of Representatives).]



    Last Modified: 11/22/15