Professional Documents
Culture Documents
Cmpe100 ws02
Cmpe100 ws02
Fall 2023-2024
Worksheet 02
2. Run the followings and make sure you understand the value expressions:
(circle 100 "solid" "red")
(place-image (circle 100 "solid" "red") 10 40 (rectangle 200 300 "solid"
"green"))
(empty-scene 200 200)
(place-image (circle 100 "solid" "red") 10 40 (empty-scene 200 200))
3. Draw the following image. Make sure that your code is written clean and readable.
4. Modify your code such that only one variable controls the size of all circles. By single
variable change, the overall image size must change but the placement of the circles
must be kept. Test your code with different size variables to validate that it works
properly. Use comments (;) to explain your code.