Answer:
In Python:
hh = int(input("Start Hour: "))
mm = int(input("Start Minute: "))
add_min = int(input("Additional Minute: "))
endhh = hh + (add_min // 60)
endmm = mm + (add_min % 60)
endhh += endmm // 60
endmm = endmm % 60
endhh = endhh % 24
print('{}:{}'.format(endhh, endmm))
Step-by-step explanation:
This prompts the user for start hour
hh = int(input("Start Hour: "))
This prompts the user for start minute
mm = int(input("Start Minute: "))
This prompts the user for additional minute
add_min = int(input("Additional Minute: "))
The following sequence of instruction calculates the end time and end minute
endhh = hh + (add_min // 60)
endmm = mm + (add_min % 60)
endhh += endmm // 60
endmm = endmm % 60
endhh = endhh % 24
This prints the expected output
print('{}:{}'.format(endhh, endmm))