Applied Checkpoint: Build a Daily-Expense Summary
Unit ID: M01-U08 Estimated active time: 30-45 minutes
Your task
Create a short Python notebook that summarises fictional expenses for one learning day.
Use these supplied values:
- Breakfast: 120 Indian rupees
- Travel: 250 Indian rupees
- Lunch: 180 Indian rupees
Your notebook must calculate:
- the total cost;
- the average cost across the three items; and
- the difference between the most expensive supplied item, travel, and the least expensive supplied item, breakfast.
Do not add personal financial information. Use only the supplied fictional values.
Required notebook structure
1. Purpose
Add a Markdown cell with a clear title and one sentence explaining the task.
2. Inputs
Create one clearly named value for each expense. Add a comment stating that the amounts are fictional and use Indian rupees.
3. Calculations
Create clearly named values for the total, average, and difference. Keep the calculations separate from the printed results.
4. Results
Print each result with a label and unit. A reader should not see an unexplained number.
5. Review note
In a Markdown cell, answer:
- Which item is the largest?
- Is the total larger than every individual item?
- Is the average between the smallest and largest item?
- What did you change after testing?
Predict first
Before running the calculation, write down your expected total. You may calculate it on paper. Then run the code and compare the two results.
Required test
When you think the notebook is finished:
- Save it.
- Restart the kernel.
- Clear old outputs if available.
- Run all cells from top to bottom.
- Confirm there is no error.
- Confirm that the output still matches your prediction.
Self-review rubric
| Criterion | Not yet | Meets |
|---|---|---|
| Inputs | A supplied value is missing, incorrect, or unclear | All three supplied values have clear names and units |
| Order | A value is used before it is created | Inputs, calculations, and outputs run in dependency order |
| Calculations | A required result is missing or incorrect | Total, average, and difference are correct |
| Readability | Names or output labels are unclear | Names, comments, spacing, and labels make the program easy to read |
| Explanation | The review note is missing or unsupported | All four review questions are answered from the output |
| Reproducibility | The notebook depends on old state or fails after restart | Restart-and-run-all completes successfully |
Mark the checkpoint complete only when every criterion meets the standard.
After you finish
Compare your program with the reference answer only after completing your own clean rerun. Your code does not need to use identical names, but the meaning, calculations, output, and reproducibility should agree.
