________ _______ __ __ _______ ___ / ____/ |/ / __ \/ / / / < / __ < / Spring 2019 Section 54 / / / /|_/ / /_/ / / / /_____/ / / / / / / /___/ / / / ____/ /_/ /_____/ / /_/ / / Assignment 04 \____/_/ /_/_/ \____/ /_/\____/_/ Thursday, 21st February, 2019 ASSIGNMENT IS DUE AT THE BEGINNING OF THE NEXT CLASS. ===================================================================================== Before you begin, press CTRL+ALT+T. This will bring up a terminal window, which is a quick way to access your network directory. Once it's open, type: mkdir asmts cd asmts mkdir asmt4 cd asmt4 When you save your work today (which you should do often), you should make sure that you save it in the asmts/asmt4 directory. THIS IS IMPORTANT! ------------------------------------------------------------------------------------- Please provide AT LEAST THREE examples of your function running. Don't forget to use ASMT-HELPER.TXT. Don't forget to use the PROBLEM function before each of your solutions. ------------------------------------------------------------------------------------ Problems may be found in the Problems document on the course website. Remember to provide contracts for your functions even when they are in the Problems Book. ==================================================================================== 1. Do Problem 13.4 from the Problem Book. Note that this problem has *two* parts. Please write a HEADER for each part. Do not forget to include a contract for each function you write. 2. Do Problem 13.5 from the Problem Book. Here are some examples: > (office-open?-alt 'fri 'am) #f > (office-open?-alt 'wed 'am) #t > (office-open?-alt 'wed 'pm) #t > (office-open?-alt 'mon 'am) #t > (office-open?-alt 'tue 'am) #f 3. Do Problem 14.1 from the Problem Book. Here are some examples: > (sum-recips 3) 11/6 > (sum-recips 2) 3/2 > (sum-recips 10) 7381/2520 > (sum-recips 1) 1 > (sum-recips 25) 34052522467/8923714800 4. Do Problem 14.2 from the Problem Book. ------------------------------------------------------------------------------------------ Don't forget to submit your work using the SUBMIT101 command! submit101 e-asmt4 asmt4 (If the name of your directory is different from 'asmt4', change 'asmt4' to whatever the name of your directory is.) ========================================================================================== ==========================================================================================