Difference: CSC121S2023Lab06 (2 vs. 3)

Revision 32023-02-09 - cathybareiss

Line: 1 to 1
 
META TOPICPARENT name="CSC121SylS2023"

Methods: Calendar

Learning Objective(s)

Line: 12 to 12
 
  1. Write a method daysInMonth that is sent a month (numbers between 1 and 12) and a year and returns the number of days in that month. One of the hints has specific data to help.
  2. Write a method displayMonth that is sent a month, year, and a third integer (between 0 and 6 that states the first day of the month). This method outputs the calendar of that month.
  3. Use those methods to display the entire calendar of the year (see the hints about program design for more details)
Added:
>
>
  1. Call your program Calendar.
 

Example program dialogue:


 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback