Question: Objective The objective is this lab is two-fold. It is for you to make use in C++ of a valued function (or value- returning function)

Objective The objective is this lab is two-fold. It is for you to make use in C++ of a valued function (or value- returning function) and a void function. It is also for you to make use of parameters passed by value and parameters passed by reference The problem: For this lab, you need to develop a C++ program that determines the time interval between a starting time and a finishing time The following could be sample runs of your program. Enter your starting and finishing time:s using a h:m:s format. starting time: 11:3:24 Finishing time: 12:13:14 Between 11:03:24 and 12:13:14 there are 4190 seconds. Enter your starting and finishing time:s using a h:m:s format. Starting time 11:03:24 Finishing time 11:3:25 ween 11:03:24 and 11:03:2!5 there is 1 second Enter your starting and finishing times using a h:m:s format. Starting time Finishing time: 23:59:55 Between 00:00:05 and 23:59:55 there are 86390 seconds. You will notice that both starting and finishing times are entered in the familiar h:m:s Requirements: In addition to your main function, you must implement 2 functions, given the following headers (and specifications) void getTime (int &hours, int &minutes, int &seconds) //Reads a time in the h:m:s format. // Returns the corresponding hours, minutes, and seconds through the 3 reference paraters. long convertToSeconds (int hours, int minutes, int seconds) // Returns the number of seconds in the given hours, minutes, and seconds Using these 2 functions, your main function should, then figure out how to determines the time interval (measured in seconds) between the starting time and the finishing time entered by the user
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
