Question: 2. Write a program that converts time in minutes to time in hours and minutes. Use #define or const to create a symbolic constant for

 2. Write a program that converts time in minutes to time

2. Write a program that converts time in minutes to time in hours and minutes. Use #define or const to create a symbolic constant for 60. Use a while loop to allow the user to enter values repeatedly and terminate the loop if a value for the time of 0 or less is entered. Save your completed file as Q1_2.cpp. [6 Marks) For your run, use the following data: 45, 90, 120,0. Take a screenshot of your output window AND a screenshot of your C code. Save the two screenshots in a Word file called Quiz1_.docx. /*** Quiz #1, Question #2, ETEC128 Last name: First name: Sec: The name, ID and section number that appear at the beginning of the output of the program should be your own, not the ones used in the sample. --- Sample run: --- Last name: Smith First name: Peter ID: 369999999 Section: 002 Enter a value for time in minutes: 30 30 minutes is @ hours and 30 minutes Enter a value for time in minutes : 60 60 minutes is 1 hours and a minutes Enter a value for time in minutes: 90 90 minutes is 1 hours and 30 minutes Enter a value for time in minutes: Bye! Press any key to continue

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!