Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:
1. Define all necessary variables and constants
2. Ask for the input of the speed of the vehicle
3. Calculate and display on separate lines the distance traveled in 6,10
and 15 hours(hint: hours are good candidates for constants)
4. Sample output is shown below:
The distance traveled in 5 hours at 55 mph is 275 miles
Use your name as part of the file name you submit: i.e.
susanSmith_pseudoCode01.txt OR JNorth_pseudoCode01.docx
Points will be deducted for incorrect file name.
To submit your assignment:
click on lab header "Pseudo-code assignment"
scroll down, find and click on "add attachment"
click on the next "add attachment"
select the "upload" option from the drop-down
locate your file in the pop-up window, click on the file name to highlight the it
click the "open" button (lower right corner)
click the "update" button

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems Analysis And Synthesis Bridging Computer Science And Information Technology

Authors: Barry Dwyer

1st Edition

0128054492, 9780128054499

More Books

Students also viewed these Databases questions