Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PROGRAMMING FUNDAMENTAL C++ For your lab, you will create a program to display a yearly calendar, using a three-dimensional array to represent the calendar itself.

image text in transcribedimage text in transcribed

PROGRAMMING FUNDAMENTAL C++

For your lab, you will create a program to display a yearly calendar, using a three-dimensional array to represent the calendar itself. Your array should use a standard size of 6 by 7 by 12, representing weeks, days, and months, respectively. Your program should begin by calling an welcome to the Calendar Utility initialization function which asks the user to enter the four-digit calendar year (e.g. 2020). what year would you like to build a calendar for? Please enter the four-digit year: 2828 and then prompts them to select what day January 1* of that year was (e.g. Wednesday January 1st of 2e2e was a... 1) Sunday for 2020). This can be seen demonstrated in 2) Monday the screenshot on the right. 3) Tuesday 4) Wednesday With this information, you should then 5) Thursday initialize the calendar. The day of January 1 6) Friday View Monthly Calendars 7) Saturday will let you know where you should start numbering from - the first few locations may be left blank if the year did not begin on a Sunday. The other thing you must consider is whether or not the year is a leap year, which will determine whether February has 28 or 29 days. To check if it is a leap ) September le) October year or not, remember that a leap year is any that: Is evenly divisible by 4 Is NOT evenly divisible by 100, unless... It is also evenly divisible by 400. After verifying whether the year is a leap year or not, and properly initializing the calendar, the main program loop (in the main function) should prompt the user to view the calendar for any given month. This menu can be seen in the screenshot on the right. 1) January 2) February 3) March 4) April 5) May 6) June 2) July ) August 11) November 12) December 13) Exit Selecting any given month will call a separate function to display that month's calendar in a nicely formatted manner, as can be seen for January and February of 2020 in the screenshots below. W F Th F Th Sa Sa in: 6 7 8 9 10 11 12 13 14 15 16 17 18 9 10 11 12 13 14 15 19 20 21 22 23 24 25 16 17 18 19 28 21 22 26 31 29 27 | 28 29 30 Press any key to continue 23 24 25 26 27 | 28 Press any key to continue When you are done, submit the completed.cpp file through the Blackboard submission tool. Please name your source file [FirstInitial][LastName) Lab1.cpp, substituting your own name. For instance, my submission would be LSilcox_Lab1.cpp

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Objects And Databases International Symposium Sophia Antipolis France June 13 2000 Revised Papers Lncs 1944

Authors: Klaus R. Dittrich ,Giovanna Guerrini ,Isabella Merlo ,Marta Oliva ,M. Elena Rodriguez

2001st Edition

3540416641, 978-3540416647

More Books

Students also viewed these Databases questions