====== CMPU-101 Assignments Spring 2013 ====== ====== Homework 8 ====== * Due May 3rd, by 8 pm.\\ * Last phase of worm game. Adding food to the simulation to allow the worm to grow. * Make a subdirectory inside your **hw** directory for homework 8 called **hw8**, download hw8.rkt into your **hw8** directory by right-clicking the link and navigating to the **hw8** subdirectory. Download the following file into your **hw8** subdirectory: {{courses:cs101-201301:assigns:hw8.rkt| hw8.rkt}}. A text version of this file can be viewed in a browser {{courses:cs101-201301:assigns:hw8.txt| here (hw8.txt)}}. Open the hw8.rkt file from inside DrRacket. Follow the directions inside the file to complete the assignment. Be sure to save the file periodically and then electronically submit it when you are finished by navigating (on a terminal screen) to your **hw** directory and typing **submit101 hw8 hw8**. //(The hw8.rkt and hw8.txt files were most recently posted on 4/26/13, at 5:36 pm)// * Use the design recipe when writing your program. This means you should include a contract, header, and purpose for each function. Also, write comments for any function that has cond clauses and, in general, for any function that could use some explanation. Put your name on the top of your program. /* \\ {{courses:cs101-201301:assigns:hw5gradingcriteria.txt| Grading Criteria for Homework 5}} \\ */ ====== Homework 7 ====== * Due April 19th, by 8 pm.\\ * Phase 1 of worm game. Directing the worm around the board and keeping it from running into walls. Stop simulation when worm hits wall. * Make a subdirectory inside your **hw** directory for homework 7 called **hw7**, download hw7.rkt into your **hw7** directory by right-clicking the link and navigating to the **hw7** subdirectory. Download the following file into your **hw7** subdirectory: {{courses:cs101-201301:assigns:hw7.rkt| hw7.rkt}}. A text version of this file can be viewed in a browser {{courses:cs101-201301:assigns:hw7.txt| here (hw7.txt)}}. Open the hw7.rkt file from inside DrRacket. Follow the directions inside the file to complete the assignment. Be sure to save the file periodically and then electronically submit it when you are finished by navigating (on a terminal screen) to your **hw** directory and typing **submit101 hw7 hw7**. //(The hw7.rkt and hw7.txt files were most recently posted on 4/19/13, at 10:12 am)// /* \\ {{courses:cs101-201301:assigns:hw5gradingcriteria.txt| Grading Criteria for Homework 5}} \\ */ ====== Homework 6 ====== * Due April 12th, by 8 pm.\\ * Creating a game board for a simulation and animating an image on the board. * Make a subdirectory inside your **hw** directory for homework 6 called **hw6**, download hw6.rkt into your **hw6** directory by right-clicking the link and navigating to the **hw6** subdirectory. Download the following file into your **hw6** subdirectory: {{courses:cs101-201301:assigns:hw6.rkt| hw6.rkt}}. A text version of this file can be viewed in a browser {{courses:cs101-201301:assigns:hw6.txt| here (hw6.txt)}}. Open the hw6.rkt file from inside DrRacket. Follow the directions inside the file to complete the assignment. Be sure to save the file periodically and then electronically submit it when you are finished by navigating (on a terminal screen) to your **hw** directory and typing **submit101 hw6 hw6**. //(The hw6.rkt and hw6.txt files were most recently posted on 4/8/13, at 9 pm)// /* \\ {{courses:cs101-201301:assigns:hw5gradingcriteria.txt| Grading Criteria for Homework 5}} \\ */ ====== Homework 5 ====== * Due April 3rd, by 8 pm.\\ * Writing interactive program that reads user responses from the keyboard. * Make a subdirectory inside your **hw** directory for homework 5 called **hw5**, download hw5.rkt into your **hw5** directory by right-clicking the link and navigating to the **hw5** subdirectory. Download the following file into your **hw5** subdirectory: {{courses:cs101-201301:assigns:hw5.rkt| hw5.rkt}}. A text version of this file can be viewed in a browser {{courses:cs101-201301:assigns:hw5.txt| here (hw5.txt)}}. Open the hw5.rkt file from inside DrRacket. Follow the directions inside the file to complete the assignment. Be sure to save the file periodically and then electronically submit it when you are finished by navigating (on a terminal screen) to your **hw** directory and typing **submit101 hw5 hw5**. \\ {{courses:cs101-201301:assigns:hw5gradingcriteria.txt| Grading Criteria for Homework 5}} \\ ====== Homework 4 ====== * Due no later than March 8th, by 8 pm.\\ * Writing recursive functions that consume and produce lists. * Make a subdirectory inside your **hw** directory for homework 4 called **hw4**, download hw4.rkt into your **hw4** directory by right-clicking the link and navigating to the **hw4** subdirectory. Download the following file into your **hw4** subdirectory: {{courses:cs101-201301:assigns:hw4.rkt| hw4.rkt}}. A text version of this file can be viewed {{courses:cs101-201301:assigns:hw4.txt| here (hw4.txt)}}. Open the hw4.rkt file from inside DrRacket. Follow the directions inside the file to complete the assignment. Be sure to save the file periodically and then electronically submit it when you are finished by navigating (on a terminal screen) to your **hw** directory and typing **submit101 hw4 hw4**. \\ {{courses:cs101-201301:assigns:hw4gradingcriteria.txt| Grading Criteria for Homework 4}} \\ ====== Homework 3 ====== * (posted Feb. 8th, due Feb. 20th by 8 pm)\\ * Writing recursive functions and accumulator functions. * Make a subdirectory inside your **hw** directory for homework 3 called **hw3**, download hw3.rkt into your **hw3** directory by right-clicking the link and navigating to the **hw3** subdirectory. Download the following file(s) into your **hw3** subdirectory: {{courses:cs101-201301:assigns:hw3.rkt| hw3.rkt}} ({{courses:cs101-201301:assigns:hw3.txt| text version hw3.txt}}). Open this file from inside DrRacket. Follow the directions inside the file to complete the assignment. Be sure to save the file periodically and then electronically submit it when you are finished by navigating (on a terminal screen) to your **hw** directory and typing **submit101 hw3 hw3**. \\ {{courses:cs101-201301:assigns:hw3grading.txt| Grading Criteria for Homework 3}} \\ ====== Homework 2 ====== * (posted Feb. 5th, due Feb. 13th by 8 pm)\\ * Writing functions following the design recipe. * Make a subdirectory inside your **hw** directory for homework 2 called **hw2**, download hw2.rkt into your **hw2** directory by right-clicking the link and navigating to the **hw2** subdirectory. Download the following file(s) into your **hw2** subdirectory: {{courses:cs101-201301:assigns:hw2.rkt| hw2.rkt}} ({{courses:cs101-201301:assigns:hw2.txt| text version hw2.txt}}). Open this file from inside DrRacket. Follow the directions inside the file to complete the assignment. Be sure to save the file periodically and then electronically submit it when you are finished by navigating (on a terminal screen) to your **hw** directory and typing **submit101 hw2 hw2** . \\ {{courses:cs101-201301:assigns:hw2grading.txt| Grading Criteria for Homework 2}} \\ ====== Homework 1 ====== == Solutions available == * (posted Jan 29th, due Feb. 6th by 8 pm)\\ * Writing arithmetic expressions and using the display, printf, and newline functions. * Click on the {{courses:cs101-201301:assigns:hw1inst.txt| hw1inst.txt}} link to see directions for this assignment in your browser. After you have made a directory for all your homework called **hw** and a subdirectory for homework1 called **hw1**, download hw1.rkt into your hw1 directory by right-clicking the link and navigating to the hw1 directory. Download the following file into your hw1 directory: {{courses:cs101-201301:assigns:hw1.rkt| hw1.rkt}} ({{courses:cs101-201301:assigns:hw1.txt| text version hw1.txt}}). Open this file from inside DrRacket. Follow the directions inside the file to complete the assignment. Be sure to save the file periodically and then electronically submit it when you are finished using the instructions in the file hw1inst.txt. \\ {{courses:cs101-201301:assigns:hw1grading.txt| Grading Criteria for Homework 1}} \\ * {{courses:cs101-201301:assigns:hw1sol.rkt|HW1 solution (.rkt)}} \\ {{courses:cs101-201301:assigns:hw1sol.txt|HW1 solutions (.txt}}