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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:10
3. bob is arguing that if you use output feedback (ofb) mode twice in a row to encrypt a long message, m, using the same key each time, it will be more secure. explain why bob is wrong, no matter what encryption algorithm he is using for block encryption (15 points).
Answers: 3
question
Computers and Technology, 22.06.2019 22:30
What is the most popular genre of video games?
Answers: 1
question
Computers and Technology, 23.06.2019 04:00
In a word processing program, such as microsoft word, which feature to you choose the desired picture enhancement?
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Spoons are designed to be used for: spring hammering. applying body filler. identifying high and low spots. sanding highly formed areas.
Answers: 3
You know the right answer?
The distance a vehicle travels can be calculated as follows: distance = speed * time for example, i...
Questions
question
Mathematics, 15.01.2021 09:10
question
English, 15.01.2021 09:10
question
Mathematics, 15.01.2021 09:10
question
Mathematics, 15.01.2021 09:10