________ _______ __ __ _______ ___ / ____/ |/ / __ \/ / / / < / __ < / Spring 2019 Section 54 / / / /|_/ / /_/ / / / /_____/ / / / / / / /___/ / / / ____/ /_/ /_____/ / /_/ / / Assignment 06 \____/_/ /_/_/ \____/ /_/\____/_/ Thursday, 29th March, 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 asmt6 cd asmt6 When you save your work today (which you should do often), you should make sure that you save it in the asmts/asmt6 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. Please use the PRINT-HW instruction to print out your homework. Full details are on the Assignments page of the course website. ========================================================================================== 1. Do Problem 16.15 from the Problem Book. 2. Rework your answer to Problem 1 so that it is tail-recursive and uses an accumulator. Call this new function EVERY-OTHER-ONE-ACC. 3. Do Problem 16.17 from the Problem Book. 4. Rework your answer to Problem 3 so that it is tail-recursive and uses an accumulator. Call this new function REPEATER-ACC. 5. Do Problem 16.23 from the Problem Book. 6. Do Problem 16.18 from the Problem Book. 7. Rework your answer to Problem 6 so that it is tail-recursive and uses an accumulator. Call this new function CONSEC-SUMS-ACC. ------------------------------------------------------------------------------------------ Don't forget to submit your work using the SUBMIT101 command! submit101 e-asmt6 asmt6 (If the name of your directory is different from 'asmt6', change 'asmt6' to whatever the name of your directory is.) ========================================================================================== ==========================================================================================