Navigation :
AP CS
Artificial Intelligence
Intermediate CS
-
3. Images
-
7. Numbers
-
8. Number Models
-
13. Booleans
-
15. Conditionals
-
20. Using Structures
-
Sem.I Review
-
21. Structures
-
22a. Recursion
-- 22a. Fibonacci
-- 22a. Digits
-- 22a. Sum Digits
-- 22a. Fibsum
-- 22a. More Recursion
-- 22a. Harmonic
-- 22a. Practice++
-- 22a. ss3
-- 22a. Recursive Helpers
-- 22a. Recursion Quiz Practice
-- 22a. Recursion Quiz 2018
-- 22a. Recursion Practice I 2019
-- Roygbiv Code
-- 22a. Strings
-- 22a. Helpers
-- 22a. Helpers: Count Divisors
-- 22a. Recursion Practice 3
-- 22a. Recursion Self Quiz
-- 22a. Recursion Practice 4
-- 22a. Mini-Quiz
-- 22a. Recursion Quiz 2
-- 22a. Recursion Practice 5
-- 22a. Recursion Practice 6
-- Quiz 3 (Hard)
-- Quiz 4 (Medium)
--
22a. Hangman Project
-
22b. Lists
-
Sem.II Review
-
Typed Racket
-
Resources
-
Pro Features
- Online Help
Robotics
WY Robotics
Exploring CS (Teachers)
Resources
22a. Recursion Quiz 2
An ice cream cone can have strawberry, vanilla, or chocolate ice cream scoops.
The number of scoops is unlimited, specified by the string of flavors that is input.
ice-cream: string -> image
(ice-cream "chocolate vanilla strawberry strawberry chocolate")
Detailed Instructions
Build up to all of the flavors by first picking a single flavor and
creating a cone for only that flavor.
Write checks as we have discussed in class. It is worth your time!
Permitted resources: Picturing Programs book and Racket Help Desk. No old homework or notes.
Grading
Flawless single flavor cone = 70%
Good tests = +10%
Multi-flavor cone, no problems: 90%.
Penalty for untested code, or errors when tested -5.
F.A.Q.
You may write any helper functions that you want.