Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hurry up i am in examination Take care USE C PROGRAMMING. Write a C program to keep displaying the following menu: 1) Months 2) Days

Hurry up i am in examination

Take care USE C PROGRAMMING.

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.

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

Deductive And Object Oriented Databases Second International Conference Dood 91 Munich Germany December 18 1991 Proceedings Lncs 566

Authors: Claude Delobel ,Michael Kifer ,Yoshifumi Masunaga

1st Edition

3540550151, 978-3540550150

More Books

Students also viewed these Databases questions

Question

What is an agile organization?

Answered: 1 week ago