Starting from:
$30

$24

Homework #3 Solution




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.







(5/5) intersection
(10/10) quadradic
(5/5) multiplyIt
(10/10) removeTail
(5/20) compose
(10/5) getOrder
(10/5) getProfit
(12/15) totalProfits
(10/5) getProv
(12/10) getProvinces
(11/10) provincialProfit

More products