Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / How to make a flowchart for logic 3?   [Logic 3] Describe the process required to calculate the total distance and average minutes per km travelled

How to make a flowchart for logic 3?   [Logic 3] Describe the process required to calculate the total distance and average minutes per km travelled

Computer Science

How to make a flowchart for logic 3?

 

[Logic 3] Describe the process required to calculate the total distance and average minutes per km travelled. A list of directional data will be sent to your subprocess and will be stored in a meaningful data structure (done in Logic 1). Hint: Logi-2 subprocess calculates the minutes for a single directional step

 

Workshop Overview

Often, programming solutions must integrate mathematical formulas to perform specific calculations to provide solutions to various day-to-day problems. It is important to be able to translate these requirements into a technical process and apply it when and wherever appropriate. 

 

Workshop Details 

A mobile application solution is needed to calculate the total car travel distance and time given a set of directions. Each directional step will include environmental factors that can influence the travel time/duration. The solution should accommodate all possible combinations of environmental factors to insure an accurate total duration is calculated. 

 

Your mobile application will not have to prompt the user for input to get the set of directions - this data (that includes the environmental factors) is an input sent to your mobile application and your application logic will have to evaluate and extract the important information you need to perform the distance and time calculations.

 

You will need to review the problem thoroughly and derive meaningful data structure(s) to consolidate the information you need to keep track of and will help make it easier to pass to and from other subprocesses. 

 

Travel Time Calculator

Constraints

Time Per Unit Travelled

A single travel unit = 2 kilometers and takes 15 minutes to travel (with 0 people and no wind factor)

 

Passenger Weight Impact

For each person, increase each unit time by 5.0%

 

Wind Direction (Terminology)

Easterly (blows from the east towards the west)

Westerly (blows from the west towards the east) 

Northerly (blows from the north towards the south) 

Southerly (blows from the south towards the north)

 

Wind Force Levels 

0 = no wind 

1 = weak wind 

2 = moderate wind 

3 = strong wind 

 

Directional Factors 

Travel AGAINST the wind: Increase each unit time by a factor of the wind level times 25.0% Travel WITH the wind: Decrease each unit time by a factor of the wind level times 20.0% Travel PERPENDICULAR to the wind: Increase each unit time by a factor of the wind level times 10.0%

 

Getting Started/Suggestions 

 

- Develop your solution incrementally by limiting the scope of your smaller problems to the scenarios described late (see last page). Each scenario focuses on a specific requirement. By the time you get to the final scenario, all the requirements will be addressed. 

 

- Each direction/step will include the following key information: 

• Distance to travel in km from which you can derive the number of travel units 

• Travel direction (east, west, north, south) 

• Environmental factors such as:

   o Number of people/passengers 

   o Wind force factor (no wind, mild, moderate, strong) 

   o Wind direction (easterly, westerly, northerly, southerly) 

 

- Constraints to consider: 

• Number of units to travel 

• Number of people/passengers 

• Wind force level 

• Wind direction 

• Travel direction (vs. wind direction) 

 

- Unit testing 

• Use the scenarios worksheet to help you track the values 

• Create  additional test cases to test your logic thoroughly (perhaps multiple directions) 

• Have all members of the group independently test your solution and see you all get the same (and correct) answer

 

Work Breakdown 

[Logic 1] Describe the process required to extract a set of directions into meaningful data that can be used by the application in preparation for performing the required calculations. [Logic 2] Describe the process required to calculate the time in minutes given a single directional step of data. Hint: the data sent to your subprocess will already be stored in a meaningful data structure (done in Logic 1) which will include the travel distance, direction, number of passengers and wind conditions. 

[Logic 3] Describe the process required to calculate the total distance and average minutes per km travelled. A list of directional data will be sent to your subprocess and will be stored in a meaningful data structure (done in Logic 1). Hint: Logi-2 subprocess calculates the minutes for a single directional step

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE