Write a program that prompts the user to enter the year and first day of the yea
ID: 3683739 • Letter: W
Question
Write a program that prompts the user to enter the year and first day of the year and display the calendar table for the year on the screen. You should follow the steps described below.
a) Develop an algorithm in pseudo language that specifies the main steps at the top level.
b) Apply the top-down design principle to refine each non-trivial step in the main algorithm into separate algorithms for sub-steps.
c) If there are non-trivial steps in the sub-steps, do refinement to them as necessary.
d) Implement your algorithms in a C++ program. The top level algorithm will be implemented as the “main( )” function, and other algorithms as user defined functions.
e) Answers to a), b), and c) will be put into the program as heading comments for the corresponding functions.
Explanation / Answer
C++ Code for calendar:
This code works fine and i have limited the starting year to 1800.