Computer Science 340
Programming Languages
Fall 2023, Siena College
Problem Set 8: Control Structures and Subprograms
Due: 11:59 PM, Friday, December 8, 2023
You may work alone or in groups of size 2 or 3 on this problem set.
Getting Set Up
In Canvas, you will find a
link to follow to set up your GitHub repository, which will be named
controlsubprograms-probset-yourgitname, for this problem set. Only one member of the
group should follow the link to set up the repository on GitHub,
then others should request a link to be granted write access.
All GitHub repositories must be created with all group members having
write access and all group member names specified in the
README.md file by 11:59 PM, Thursday, November 30, 2023. This applies to those who choose
to work alone as well!
Questions and Programs
Question 1: Sebesta Chapter 8 Programming Exercise 1, p. 362-3. Don't forget to respond to the discussion portion of the question! (5 points)
Question 2: Sebesta Chapter 8 Programming Exercise 3, p. 363. Be sure to use each language's multiple-selection statements (e.g., switch statements, if that's what the language has). Don't forget to respond to the discussion portion of the question! (5 points)
Question 3: Sebesta Chapter 8 Programming Exercise 5, p. 363-4. (4 points)
Question 4: Sebesta Chapter 8 Programming Exercise 6, p. 364. (4 points)
Question 5: Sebesta Chapter 8 Programming Exercise 9, p. 364. (4 points)
Question 6: Sebesta Chapter 9 Problem Set Exercise 5, p. 413. (6 points)
Question 7: Sebesta Chapter 9 Problem Set Exercise 7, p. 413-4. (6 points)
Question 8: Sebesta Chapter 9 Programming Exercise 1, p. 414. (6 points)
Question 9: Sebesta Chapter 9 Programming Exercise 7, p. 415. (5 points)
Submission
Commit and push!
Grading
This assignment will be graded out of 45 points.
|
Feature | Value | Score |
|
Q1: Ch. 8 PE 1 | 5 |
|
Q2: Ch. 8 PE 3 | 5 |
|
Q3: Ch. 8 PE 5 | 4 |
|
Q4: Ch. 8 PE 6 | 4 |
|
Q5: Ch. 8 PE 9 | 4 |
|
Q6: Ch. 9 PS 5 | 6 |
|
Q7: Ch. 9 PS 7 | 6 |
|
Q8: Ch. 9 PE 1 | 6 |
|
Q9: Ch. 9 PE 7 | 5 |
|
Total | 45 | |
|
|