Plan a study block
Choose your available whole minutes and the number of tasks you want to tackle. The starter divides time equally; any remainder is assigned one minute at a time to the earliest tasks. When you have fewer minutes than tasks, some tasks receive zero minutes.
This is a planning aid, not a promise about what you will learn.
Your coding contribution
The starter does not yet know task names or completion status. Build that feature in the afternoon activity, keeping input validation and accessible feedback.
Try it before editing
- 40 minutes across 3 tasks should produce 14, 13, and 13 minutes.
- 2 minutes across 3 tasks should produce 1, 1, and 0 minutes.
- Zero, negative, fractional, and blank inputs should not produce a study plan.