Question: uestion #2: Your second program (5 pts Write a C++ program that inputs a number of seconds and outputs the hours, minutes and seconds equivalent.

 uestion #2: Your second program (5 pts Write a C++ program

uestion #2: Your second program (5 pts Write a C++ program that inputs a number of seconds and outputs the hours, minutes and seconds equivalent. Use 2 constant variables to store the number of seconds in an hour and the number of seconds in a minute. The integer operators/ and % will be useful to solve this question. Here are 2 examples of how your program should behave (assume that the circled data has been entered by the user) C:Windows system32 cmd.exe Seconds to hrs, mn sec Converter Program nter the seconds you want converted to corresponding hours. minutes and seconds: 2345 he correspond hours. minutes. seconds is 3. 25. 45 hank you for using the Seconds to hrs. mn. sec Converter Progran Figure 2 - Sample output screen 1 for Question 2 C:Windows system32 cmd.exe Seconds to hrs. mn. sec Converter Program ter the seconds you want converted to corresponding hours minutes and seconds 200 he correspond hours. minutes. seconds is 1. 10. 0 hank you for using the Seconds to hrs, mn, sec Converter Program Figure 3- Sample output screen 2 for Question2

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!