50 likes | 151 Views
GBK Programming 1. Jordan Johnson. Today’s plan. Greeting Warm-up: Review Hand Tracing Lab Assignment Work Clean-up. Hand Tracing. On paper or in a text editor window, trace by hand the evaluation of the following:
E N D
GBK Programming 1 Jordan Johnson
Today’s plan Greeting Warm-up: Review Hand Tracing Lab Assignment Work Clean-up
Hand Tracing • On paper or in a text editor window, trace by hand the evaluation of the following: • (* (image-width (circle 5 “solid” “blue”)) (image-height (circle 5 “solid” “blue”))) • (= (expt 2 4) x) where x is defined with: (define x 16)
Hand TracingSolutions • Solutions: • (* (image-width (circle 5 “solid” “blue”)) (image-height (circle 5 “solid” “blue”)))= (* (image-width )(image-height (circle 5 “solid” “blue”)))= (* 10 (image-height (circle 5 “solid” “blue”)))= (* 10 (image-height ))= (* 10 10)= 100 • (= (expt 2 4) x)= (= 16 x)= (= 16 16)= true
Clean-up • Before you leave, please . . . • Log out. • Push in your chair. • Make sure you’ve got everything. • Make sure all trash ends up in the trash can.