Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Database And Expert Systems Applications 15th International Conference Dexa 2004 Zaragoza Spain August 30 September 3 2004 Proceedings Lncs 3180

Authors: Fernando Galindo ,Makoto Takizawa ,Roland Traunmuller

2004th Edition

3540229361, 978-3540229360

More Books

Students also viewed these Databases questions