Imagine you are asked to write a program to print out a yearly calendar. In this program, the user enters the year desired, and the output is a calendar for that year. Determine how the representation of internal data will affect the way in which the program is written.

 

Produce two examples of data structures that might be used in the scenario above.  (Hint: Are your data structures cumulative or not? How is a leap year handled?)

Leave a Reply

Your email address will not be published. Required fields are marked *

Imagine you are asked to write a program to print out a yearly calendar. In this program, the user enters the year desired, and the output is a calendar for that year. Determine how the representation of internal data will affect the way in which the program is written.

 

Produce two examples of data structures that might be used in the scenario above.  (Hint: Are your data structures cumulative or not? How is a leap year handled?)

Leave a Reply

Your email address will not be published. Required fields are marked *