subject

The distance a vehicle travels can be calculated as follows: // // distance=speed time // // for example, if a train travels 48 miles per hour for three hours, the distance // traveled is 120 miles. write a program that asks the user for the speed of a // vehicle (in miles per hour) and the number of hours it has traveled. it should // then call a function that uses a loop to display the number of miles the vehicle // has traveled for each hour of that time period and returns the total number of // miles traveled. / function showandcalculatedistance( speed, time) { / 25 26 // insert your code between here and the next comment block. do not alter // any code in any other part of this file. 28 31 // insert your code between here and the previous comment block. do not alter / 32 // any code in any other part of this file. 34 } 35 36 37 38 39 40 var vehiclespeed = parseint(prompt('how fast is the vehicle traveling (in miles per hour)? ')); var timetraveled = parsefloat(prompt('how long has this vehicle traveled (in hours)? var totaldistancetraveled = showandcalculatedistance(vehiclespe ed, timetraveled); alert('in ' + timetraveled + ' hours, a vehicle traveling at ' + vehiclespeed + ' miles/hour will have traveled ' + totaldistancetraveled + ' miles.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:00
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data.
Answers: 1
question
Computers and Technology, 22.06.2019 08:00
What best describes a career pathway in a lodging career? a worker starts out as an amusement attendant, then becomes a recreation worker, and then becomes a gaming worker within five years. a worker starts out as a bell hop, then becomes a night clerk, and then becomes a hotel manager within five years. a worker starting out as a tour guide, then becomes a travel clerk, and then becomes a travel agent within five years. a worker starts out as a server, then becomes a food preparer, and then becomes a head chef within five years.
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
Which of the following examples has four beats in each measure?
Answers: 2
question
Computers and Technology, 23.06.2019 03:10
Acomputer has a two-level cache. suppose that 60% of the memory references hit on the first level cache, 35% hit on the second level, and 5% miss. the access times are 5 nsec, 15 nsec, and 60 nsec, respectively, where the times for the level 2 cache and memory start counting at the moment it is known that they are needed (e.g., a level 2 cache access does not even start until the level 1 cache miss occurs). what is the average access time?
Answers: 1
You know the right answer?
The distance a vehicle travels can be calculated as follows: // // distance=speed time // // for ex...
Questions
question
History, 01.02.2021 22:40
question
Mathematics, 01.02.2021 22:40
Questions on the website: 13722363