CSC 160 Spring 2015 - Homework 5b (50 points)
Assigned Mar 4, due MON Mar 23
1) Assignments submitted on Moodle with time stamps during
class time (Mon or Wed 4:15-5:30pm) will be given a grade of
ZERO.
2) Start this homework as soon as
possible so that you have time to get any help you may need
from the instructor or course tutor prior to when the assignment is due.
3) Do not start the exercises until you have fully read and fully understood the corresponding
textbook sections. If there is something you do not fully understand, you must contact
the instructor or course tutor prior to
starting the assigned exercises.
[22 pts.] Chapter 5A
Read Sections 5.1-5.4 of the textbook.
Do the following exercises from the textbook in a single Definitions Pane:
To begin developing copies-beside
: Exercises 5.3.2 and 5.4.2 (For 5.4.2, you must include three test cases with
expected answers beginning with should be in quotation marks)
To begin developing lollipop
: Exercises 5.3.7 and 5.4.7 (For 5.4.7, you must include three test cases with
expected answers beginning with should be in quotation marks)
Save the Definitions Pane with the filename "ch5part2LASTNAMEdef.rkt". Do not submit this file yet as you will continue working in
the same file for the next part of this assignment!
[14 pts.] Chapter 5B
Read Sections 5.5-5.10 of the textbook.
Do the following exercises from the textbook in the same Definitions Pane as above:
To continue developing copies-beside
: Exercises 5.8.1 and 5.9.2
To continue developing lollipop
: Exercises 5.8.6 and 5.9.7
Save the Definitions Pane with the filename "ch5part2LASTNAMEdef.rkt". Do not submit this file yet as you will continue working in
the same file for the next part of this assignment!
[14 pts.] Chapter 5C
Read Sections 5.11-5.16 of the textbook.
Do the following exercise from the textbook in the same Definitions Pane as above:
To finish developing lollipop
: Exercise 5.11.5
Test each function using the test cases you wrote in Exercise 5.4.7.
Submit the Definitions Pane on Moodle with the filename "ch5part2LASTNAMEdef.rkt".
Submit the Interactions Pane on Moodle with the filename "ch5part2LASTNAMEint.rkt".
GRADING |
Question |
Point Value |
5.3.2 (copies-beside ) |
5 |
5.4.2 |
6 |
5.8.1 |
3 |
5.9.2 |
4 |
5.3.7 (lollipop ) |
5 |
5.4.7 |
6 |
5.8.6 |
3 |
5.9.7 |
4 |
5.11.5 |
10 |
Testing |
4 |
Total |
50 |
Last Modified: 3/1/15