Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using vscode with java in an html file please help finish the code thank you On your own 5. Complete the distance Travelled () function.

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedusing vscode with java in an html file please help finish the code thank you

On your own 5. Complete the distance Travelled () function. If the input into the function is bad, then the function should return the text: Bad data. Try again. Otherwise, the function should return the miles travelled at hourly intervals. An example of good output is shown below. 6. When you are done, clicking the button should generate output as shown below. X Sindex.html File C:/Users/jerem/Drop... o : Distance Travelled Click the button to determine the distance travelled over time. What is the speed of the car in miles per hour 40 How many hours has the car been travelling? 3 Calculate 40,80,120, 7. Test your work using the web developer console. Changing the input to the distance Travelled() function should change its output. An example follows: Console Elements Sources Network Performance Memory top o Filter Default levels Hide network Preserve log Log XMLHttpRequests Eager evaluation Autocomplete from history Evaluate triggers user activation Selected context only O Group similar > distance Travelled (10,5) distance Travelled (55,4) distance Travelled("elephant",6) 5 6 7 8 9 10 11 12 13 *********** -->

Click the button to determine the distance travelled over time.

24 25 26 27 28 29 30 31 32 33

What is the speed of the car in miles per hour

How many hours has the car been travelling?

On your own 5. Complete the distance Travelled () function. If the input into the function is bad, then the function should return the text: Bad data. Try again. Otherwise, the function should return the miles travelled at hourly intervals. An example of good output is shown below. 6. When you are done, clicking the button should generate output as shown below. X Sindex.html File C:/Users/jerem/Drop... o : Distance Travelled Click the button to determine the distance travelled over time. What is the speed of the car in miles per hour 40 How many hours has the car been travelling? 3 Calculate 40,80,120, 7. Test your work using the web developer console. Changing the input to the distance Travelled() function should change its output. An example follows: Console Elements Sources Network Performance Memory top o Filter Default levels Hide network Preserve log Log XMLHttpRequests Eager evaluation Autocomplete from history Evaluate triggers user activation Selected context only O Group similar > distance Travelled (10,5) distance Travelled (55,4) distance Travelled("elephant",6) 5 6 7 8 9 10 11 12 13 *********** -->

Click the button to determine the distance travelled over time.

24 25 26 27 28 29 30 31 32 33

What is the speed of the car in miles per hour

How many hours has the car been travelling?

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

More Books

Students also viewed these Databases questions