Question: Suppose your class started at 3 : 0 2 PM and ended at 4 : 5 0 PM . How long was the class duration?

Suppose your class started at 3:02 PM and ended at 4:50 PM. How long was the class
duration? Write a program to calculate the duration and display it in the following format.
The class duration was 1 hour/s 48 minute/s

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 Programming Questions!