subject

The distance a vehicle travels can be calculated as follows: distance = speed * time for example, if a train travels 40 miles-per-hour for three hours, the distance traveled is 120 miles. write a program that asks for the speed of a vehicle (in miles-per-hour) and the number of hours it has traveled. both values are assumed to be integers. it should use a loop to display the distance a vehicle has traveled for each hour of a time period specified by the user. for example, if a vehicle is traveling at 40 mph for a three-hour time period, it should display a report similar to the one that follows: hours distance traveled 1 40 2 80 3 120 do not accept a negative number for speed and do not accept any value less than 1 for time traveled.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 06:00, jack487
How can a user delete a drawing object
Answers: 1
image
Computers and Technology, 23.06.2019 07:00, lin550
Why were most movies from the late 1890s until the early 1930s only filmed in black and white? there were only a few people who could afford the technology to produce color motion pictures back then. audiences did not want color motion pictures until later. the film used to make color motion pictures often overheated, which was a safety hazard, so it was generally not allowed. color films had to be hand-colored, frame by frame.
Answers: 3
image
Computers and Technology, 23.06.2019 12:00, trippie4life
3. when you right-click a linked spreadsheet object, what commands do you choose to activate the excel features? a. linked worksheet object > edit b. edit data > edit data c. linked spreadsheet > edit d. object > edit data
Answers: 2
image
Computers and Technology, 23.06.2019 12:30, legend101xD
Animations and transitions are added from the
Answers: 1
You know the right answer?
The distance a vehicle travels can be calculated as follows: distance = speed * time for example, i...

Questions in other subjects:

Konu
Computers and Technology, 19.09.2021 16:00
Konu
Arts, 19.09.2021 16:00