Algorithm hint for displayMonth method
- get the number of days in a month (from another method)
- display the title of the month (using another method)
- display the spaces for the missing days of the month
- first day of the first week is 1
- last day of the first week is 7 - starting day
- while the last day of the week is < the last day of the month
- display that week
- add seven days to both of the variables
- display the remaining partial week (first day to number of days in the month)
This topic: CenterForComputing
> WebHome >
Syllabi >
CSC121SylF2023 >
CSC121F2023Lab05 > CSC121F2023Lab05Hint1
Topic revision: r1 - 2023-06-19 - cathybareiss