Question: LAB #5 The objective of the program is to create a time unit converter. Develop an algorithm (Pseudocode & Flowchart), then write a C program
LAB #5 The objective of the program is to create a time unit converter. Develop an algorithm (Pseudocode & Flowchart), then 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. First, the user is prompted with the menu and asked to input an integer representing one of the three options 2. Second, collect a value from the user to represent seconds, minutes. or hours (whichever from value was selected) 3. If an invalid entry is made by the user display the following message: You have made an invalid selection, please try again. 4. Convert the inputted value to the selected format with the following formulas: seconds to minutes: minutes seconds / 60: minutes to hours: hours = minutes / 60 remaining Minutes - minutes % 60 hours to days: days = hours/24 5. Once you have converted the unit entered, Output the conversion to the user Converted (untt start value) (unit start type) to (unit converted value) (unit converted type). For example, if option 3 (hours to days) is selected and the user enters 48 hours, the output should be: Converted 48 hours to 2 days. Save the program as lab5.c and submit your flowchart, pseudocode, and .c file electronically on the Blackboard using switch caseii
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
