The fleet has mapped almost the whole star cluster. Mission Control sends a message: each Crew Engineer will build a capstone project.
"I will build all three ideas at once!" Rocket says. "Tonight!"
Raven reads the list of choices slowly. "What do you notice about what each project needs?"
"They each use different tools from our toolkit," Rocket says. "Lists, dictionaries, sorting, trees."
Nova blinks. "Here is a hint. A good choice starts with who will use it, and what it must do."
| Project | What it does | Main tools |
|---|---|---|
| Mission planner | Keeps a list of tasks with times and shows them in order | list of dictionaries, sorted() with a key, loops |
| Star quiz game | Asks questions, checks answers and keeps score | dictionary of questions and answers, if, a running total |
| Fleet inventory tracker | Counts supplies, finds what is low, finds an item fast and counts the crew | dictionary, sorting, binary search, a tree with recursion |
Next week the whole crew builds the Fleet inventory tracker together, one part each day. It uses the most tools from this year.
You can also plan your own choice this week. With a grown-up, you can build it after the course.
| Statement | True or false? |
|---|---|
| A good plan starts with who will use the program. | ? |
| Building three projects at once is the fastest way. | ? |
| The inventory tracker uses binary search. | ? |
Here is a small piece of the Star quiz game idea. It checks answers and keeps score.
quiz = {"2 + 3": "5", "4 * 2": "8"}
answers = {"2 + 3": "5", "4 * 2": "9"}
score = 0
for q in quiz:
if answers[q] == quiz[q]:
score = score + 1
print("Score:", score) | Statement | True or false? |
|---|---|
| The quiz loop visits each question once. | ? |
| The answer to "4 * 2" was right. | ? |
| score starts at 0. | ? |
| Every capstone idea uses at least one loop. | ? |
Great choosing! Tomorrow we break the tracker into small parts.