Write function named that add integer number to time-of-day


Using a 24-hour clock representation, time is generally expressed in terms of hours and minutes past midnight of the current day. Write a C++ function named addTime() that will add an integer number to a time-of-day value represented by two separate integers: hours and minutes.

- Write a definition for addTime() that will accept three integer arguments: the current time hours value, current time minutes value, and the number of minutes to be added to the current time.

- Write a main() driver program that prompts the user to enter the hours and minutes values for the time of day and also number of minutes to add to the time value.

- Have the main () function call addTime() and display the updated time value on the console in the following format: hh:mm.

Request for Solution File

Ask an Expert for Answer!!
Mechanical Engineering: Write function named that add integer number to time-of-day
Reference No:- TGS0838987

Expected delivery within 24 Hours