modular projects

modular code

about modular code
Top Level Plan
1. displayCalendar
2. shortestDays
3. shortMonthName
4. findMonth
5. countMonth
Refinements
displayCalendar
1. loop 12 times
2. display the name of the next month
3. display the number of days in the month
4. end loop
shortest days
1. minPosition = 0
2. minDays = number of days in 1st minPosition
3. loop 11 times
4. if next number of days < minDays
5. minDays = next number of days
6. minPosition = current minPosition
7. end if
8. end loop
9. display name of month at minPosition

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.