CS 120 02/Zelle Fall 2018

Intro Computers and Programming

Assignments:

(due 9/4, class time) Chapter 1 Review Exercises

Read Chapter 1 and answer the True/False and Multiple Choice questions from the end of the chapter. You do not have to do the discussion questions. Write your answers on paper suitable for hand-in at the start of class.

(due 9/6, midnight) chaosc.py

Do programming exercise 6 from the end of Chapter 1 (page 25). For this exercise you will try out 3 modifications of the chaos.py program. Part a) is just like the original program, except that it prints 100 numbers instead of just 10. Parts b) and c) have you modify the algebraic form of the computation being done. For ease of comparison, use "save as" to create a new file for each version of the program. Name your three versions of the program chaosa.py, chaosb.py, and chaosc.py.

You should hand in the last version of the program (chaosc.py). The problems asks you to explain (as best you can) what you see when you compare these programs. Please include your explanation as COMMENTS (lines starting with #) inside your final version (chaosc). I suggest you put these comments near the top of the file, right after the comment with your name. Hand in this file on socrates.

(due 9/11, class time) Chapter 2 Review Exercises

Read Chapter 2 and answer the True/False and Multiple Choice questions from the end of the chapter. You do not have to do the discussion questions. Write your answers on paper suitable for hand-in at the start of class.

(due 9/11, midnight) unitconvert.py

Programming Exercise # 11 on page 55. For full credit, you must do an "interesting" conversion. No feet to inches.

(due 9/11, midnight) interest2.py

Programming Exercise # 8 on page 55.

Start reading Chapter 3

(due 9/13, midnight) distance.py

Exercise 7 on page 80

(due 9/18, class time) Chapter 3 Review Exercises

Read Chapter 3 and answer the True/False and Multiple Choice questions from the end of the chapter. You do not have to do the discussion questions. Write your answers on paper suitable for hand-in at the start of class.

(due 9/18, midnight) sumn.py

Exercise #11 on page 81. There is a formula for this sum, but don't use it; the purpose of the exercise is to practice writing an accumulator loop.

(due 9/18, midnight) sumncube.py

Exercise #12 on page 81. There is a formula for this sum, but don't use it; the purpose of the exercise is to practice writing an accumulator loop.

(due 9/25, class time) Chapter 4 Review Exercises

Read Chapter 4 and answer the True/False and Multiple Choice questions from the end of the chapter. You do not have to do the discussion questions. Write your answers on paper suitable for hand-in at the start of class.

(due 9/25, midnight) face.py

Do programming exercise #3 on page 126. You can substitute a "fall scene" or depicting a hobby of yours, if you want.

(due 10/4, midnight) unitgui.py

Make a GUI version of your unit conversion problem similar to the convertgui program from Chapter 4.

(due 10/4, midnight) futval3.py

Improve the future value program from Chapter 4 as suggested in the last problem of the second graphics lab. Specifically, it should have the following features:

Please note the change in due dates. Happy Outfly!

(due 10/9, midnight) house.py

Do programming exercise 11 from Chapter 4 (Five-click house). For full credit, you should add some "bonus" feature(s) at the end of the program (additional click(s) to draw more). Be creative!

(due 10/11) Finish Chapter 5

You should finish reading Chapter 5, pay attention especially to Section 5.9. Also continue working on the File Programs lab that we did in class today. We will be discussing this on Thursday.

(due 10/16) Caesar Cipher

Exercise 8 on page 172. Note, there is just one program it functions as both an encoder and a decoder; we just use different key values. If a file is encoded with the key=5, then it can be decoded with key=-5 or key=21.

(due 10/16) polydraw.py

Complete the program described in part 5 if the File Programs lab. You can use the poly_test.txt file from our handouts folder as a final test of your program, but should create some simpler files of your own for initial tests.

(due 10/16) Read Chapter 6

(due 10/18, class time) Chapter 6 Review Questions

Do the T/F and multiple choice questions from the end of Chapter 6.

(due 10/18) futvalfn.py

This is the problem described in part 4 of the Function Fun lab.