Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Implement a Days Calculator. The calculator will compute the number of days that elapsed between January 1, 1900 and a given date. You need to
Implement a Days Calculator. The calculator will compute the number of days that elapsed between January 1, 1900 and a given date. You need to take intoaccount whether the entered year is a leap or not. A leap year is any year that is (divisible by 4 but not divisible by 100), or is (divisible by 400) The number of days in each month are as follows: January February 28 (29 for a leap 31 year) March April May June 31 30 August September October November December 30 31 31 30 31 30 31 Write a C++ program that does the following: 1- Displays a menu of two choices: a- Compute days since 1/1/1900 b Quit 2- Accepts a choice from the user 3- If choice enteredis not a or b prints an error message and asks for another choice. If choice is a: 4- a- Accepts one date. Dates should have the following format dd
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started