I am given a file which contains number of activities planned of a person in a d
ID: 3660789 • Letter: I
Question
I am given a file which contains number of activities planned of a person in a day.On the first line of the file is the number of activities planned out for the day.then next line contains the start time then space then ending time of one activity and then next line contains details of the activity.I have to find the largest time gap in which there is no activity planned out.Important note:start time is greater or equal to 10:00 and ending time is less than or equal to 18:00.time is in format hh:mm. I would appreciate any help.Explanation / Answer
i think you should first assign some variables the values of start time and end time, and then run a loop giving out the value of difference between start time and end time and compare it with the initial time difference, and end the loop with giving out the result of maximum time difference,,,, i am not that good in c++, but this way you could probably get to the answer
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.