Starting from:

$25

CSE 465/565 Homework #3


Homework #3
100 points
Four Scheme files are provided for you: hw3.scm, sales.scm, salesBig.scm, and hw3tests.scm. Complete
the functions in hw3.scm. Use the function names exactly as they appear in the file. Read the comments in
hw3.scm for a description of what these functions should do. Include a function definition for each
function, even if you do not complete it. Your programs will be run on ceclnx01 using the following
command:
scheme48 -h 8000000 < hw3.scm
The test cases in hw3tests.scm and additional test cases will be used for grading. Check your solution
when loading the file sales.scm vs. salesBig.scm. Currently, hw3.scm loads the file sales.scm. You will
need to modify lines 58-59 in the original hw3.scm file to load a different input file. The submitted
hw3.scm file should load sales.scm.
Submit all of your stuff (hw3.scm, sales.scm, salesBig.scm, hw3tests.scm) in a zip file.
For each exercise, you will see the points in parenthesis. The first number is the number of points for CSE
465 students; the second number is the number of points for CSE 565 students.
1. (5/5) intersection
2. (10/10) quadradic
3. (5/5) multiplyIt
4. (10/10) removeTail
5. (5/20) compose
6. (10/5) getOrder
7. (10/5) getProfit
8. (12/15) totalProfits
9. (10/5) getProv
10. (12/10) getProvinces
11. (11/10) provincialProfit

More products