Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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: 309999999 Section: 802 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 @ 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

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

More Books

Students also viewed these Databases questions