Computer Science 433
Programming Languages

Fall 2014, The College of Saint Rose

Program/Problem Set 9: Control and Subprograms
Due: 4:00 PM, Tuesday, November 25, 2014

This problem set consists of several questions, some of which require you to complete relatively short programming tasks. You may work alone or with a partner on this assignment.

Questions and Programs

All programs required are to be treated as "Practice Programs" in terms of collaboration and grading. You are welcome to discuss them with your classmates, and I will grade only on correctness, not documentation, style, etc. Of course, you should still make sure your name is in every file you submit! Unless otherwise specified, all programs should be included in your submission and you should make sure they run on mogul.

Question 1: Do Sebesta Programming Exercise 1, p. 383. You are encouraged to work with classmates beyond your group to come up with the code samples, but the discussion of readability and writability should be your own. (8 points)

Question 2: Do Sebesta Programming Exercise 3, p. 383-384. Again, you are encouraged to work with classmates beyond your group to come up with the code samples, but the discussion of the merits should be your own. (7 points)

Question 3: Do Sebesta Programming Exercise 5, p. 384. (6 points)

Question 4: Do Sebesta Programming Exercise 6, p. 384. (7 points)

Question 5: Do Sebesta Programming Exercise 1, p. 439. (6 points)

Question 6: Do Sebesta Programming Exercise 9, p. 440. (6 points)

Question 7: Do Sebesta Problem Set 2, p. 468. (5 points)

Submission

Before 4:00 PM, Tuesday, November 25, 2014, submit your work for grading. Create and submit a single archive file (a .7z or .zip file containing all required files) using Submission Box under assignment "PS9".

Grading

This assignment will be graded out of 45 points.

Feature

Value Score
Question 1: Programming Exercise 1 programs 4
Question 1: Programming Exercise 1 discussion 4
Question 2: Programming Exercise 3 programs 3
Question 2: Programming Exercise 3 discussion 4
Question 3: Programming Exercise 5 program 3
Question 3: Programming Exercise 5 discussion 3
Question 4: Programming Exercise 6 programs 4
Question 4: Programming Exercise 6 explanation 3
Question 5: Programming Exercise 6 program 3
Question 5: Programming Exercise 6 timings 3
Question 6: Programming Exercise 9 program 6
Question 7: Problem Set 2 5
Total 45