JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Gallery
csHjavaB-2019
about this document
standard algorithms
modular projects
class + objects
data flow 2
courseWork
Elements
development workflow
indices
hotel
golf
More
Share
Explore
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 (
Ctrl
P
) instead.