Answer:
Step-by-step explanation:
The following code is written in Python, it asks the user for the number of minutes worked. Divides that into hours and minutes, saves the values into separate variables, and then prints the correct statement using those values. Output can be seen in the attached image below.
import math
class HoursAndMinutes:
min = input("Enter number of minutes worked: ")
hours = math.floor(int(min) / 60)
minutes = (int(min) % 60)
print(str(hours) + " hours and " + str(minutes) + " minutes")