Section: Algorithm 7. s] 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...


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

Extracted text: Section: Algorithm 7. s] 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. ] *Develop a flowchart to show your algorithm, using the diagrammatic conventions described in the lecture. s] What is the likely complexity of your program using big-O notation? ** 11. Clearly point out what the primary parameters are and define your terms.

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here