Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write program in c++ (Display calendar using loop, user defined functions, top-d

ID: 3679973 • Letter: W

Question

Write program in c++

(Display calendar using loop, user defined functions, top-down design)

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

Pseudocode for calendar procedures:

** no of days in year**

** no of days in month**

** leap year code**

**display code**

The C++ Program code for the Calender with the cooment sections for every step..:

You need to count how many years have passed, and how many days were in those years, as well as the days in the months after those years and the above code displays the same.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote