Question: Write a C++ program to keep displaying the following menu: 1) Months 2) Days 3) Hours 4) Minutes 5) Seconds 6) Exit to read a

Write a C++ program to keep displaying the following menu:

1) Months 2) Days 3) Hours 4) Minutes 5) Seconds 6) Exit

to read a Year value and convert it to the selected item until the user chooses Exit. Assume that 1 Year = 12 Months and 1 Month = 30 Days.

Example: If option 1 is selected and input is 10, the output will be 10 * 12 = 120 Months If option 2 is selected and input is 5, the output will be 5*12*30=180 If option 6 is selected, the program terminates

write me the code by c++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!