Admin

Problems 48 - 62

3/6  
  • 48  understand what the reward function returns for different values
  • 49  You should be able to understand what the cond expression will evaluate to for different values of y.
  • 50  add tests (check-expects ...) so that there is no black background when you run the program

3/8  
  • 51 The traffic light for this problem is simply a box with a colored circle like; 
  • 52  The interval  (2  4] is that same as 
       or   2 < x <= 4


3/12   
 Rocket Problems 53 - 56
Ex 53  Ex 54  Ex 55  Ex 56

  • 53  Make at least 4 drawings (on the computer) of a rocket at 0, HEIGHT, "resting", and some other height
  • 54   Copy the definitions and the finished show function.  If you cannot figure out why it is an error, change the (string?  x) to (string=? "resting"  x) and run the show function with different values.
  • 55  Write a function to  replace the three expressions.  Note what your variable(s) are (hint: what is changing?)  

Due 48 - 52


3/14  
 Rocket continued

  • Copy the code in the book to make a "working" rocket launch program
  • You must read the code - it does not work like most students think it does
  • Several of the programs have you modify the code
  • problem 57 has you modify the program to work the way most students think that it should


3/16   Rocket continued

3/20   Rocket continued

3/22   Finish Rocket problems

4/2

  • 58 - write and use constants (similar to problem theater problem)
  • 59  You can use the traffic light images given or you can use this version of the render program 
    • the bulb function is pretty clever - understand how it works
    • the traffic light is resizable!
  • 60 & 61 - use numbers instead of strings to represent the traffic light colors

Due 53 - 56

4/4

  •  62 Door Closer simulation (basically already written for you)

Website by SchoolMessenger Presence. © 2018 West Corporation. All rights reserved.