Question: *PLEASE HELP FOR PART I AND II* Section: Algorithm (12 marks) 7. [4 marks] A transport consultant has created a file of information about trips
*PLEASE HELP FOR PART I AND II*

Section: Algorithm (12 marks) 7. [4 marks] A transport consultant has created a file of information about trips collected from individuals who have participated in a survey. This information includes start_time and end_time variables. One of the items contained in the file is the duration of each trip (that is, end_time-start_time) in minutes. The consultant is trying to work out how to calculate the number of trips with duration greater than 60 minutes (that is, how many trips take longer than an hour) and requires your assistance to develop an algorithm. You can assume that the durations are read one at a time and should only be read until EOF (end of file) is reached i. [4 marks] *Develop a flowchart to show your algorithm, using the diagrammatic conventions described in the lecture. ** [2 marks] What is the likely complexity of your program using big-O notation? Clearly point out what the primary parameters are and define your terms. 11
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
