Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3 ) Vehicle Routing An intercampus shutule can take one of several routes. For each run, a dispatcher checks what the current traffic conditioss are
Vehicle Routing An intercampus shutule can take one of several routes. For each run, a dispatcher checks what the current traffic conditioss are to find out the average speed on each route and determine wit route the shuttle driver should take. a Write a program that, in a while loop: prompts for two inputs: distance in miles and speed in miles per hour calculates the time the route should take in minutes and displays this result keeps track of which alternative route is the fastest and displays this after all routes are entered Here is an example session: Enter route distance miles: Enter route speed mileshour : More routes yn:y Enter route distance eiles: Enter route speed mileshour : More routesyn Route is fastest; minutes b Asume current traffic conditions are as follows. Run your program uxing the data below to determise the fautect rouk. begintabularlcchline Route Type & begintabularc Distance milesendtabular & begintabularc Current sped mileshourendtabularhline local & & hline parkway & & hline highway & & hline endtabular c Enhance your program to detect invalid inputs of or negative values for distance or speed creates a Python code Create a flowchart the visually depicts how the program will work write program Pseudocode detail algorithm and add it as a comment block to the submitted program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started