Question: Pseudo - code Lab Distance Traveled If we assume there will be no accidents or delays, the distance a car can travel on the interstate

Pseudo-code Lab
Distance Traveled
If we assume there will be no accidents or delays, the distance a car can travel on the interstate is calculated by the following formula:
distance = speed x time
Using Microsoft Word, or a text editor write the pseudo-code that would accomplish the following:
Define all necessary variables and constants
Ask for the input of the speed of the vehicle
Calculate and display on separate lines the distance traveled in 6,10 and 15 hours(hint: hours are good candidates for constants)
Sample output is shown below:
The distance traveled in 5 hours at 55 mph is 275 miles

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!