Question: Please write the code using SWITCH STATEMENT: The objective of the program is to create a time unit converter. Write a C program that displays

Please write the code using SWITCH STATEMENT:
The objective of the program is to create a time unit converter. Write a C program that displays a menu to the user with three options: 1. Seconds to minutes 2. Minutes to Hours 3. Hours to Days 1. Include comments at the beginning of the program as shown below: program: lab5.c author: firstName, lastName date: today's date purpose: using switch-case statement 2. First, user is displayed the menu and asked to input an integer representing one of the three options. 3. Second, collect a value from the user to represent seconds, minutes, or hours (whichever from value was selected) 4. Convert the inputted value to the selected format with the following formulas: o seconds to minutes: minutes = seconds / 60; o minutes to hours: hours = minutes / 60; remaining minutes = minutes % 60; hours to days: hours = days / 24
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
