Question: in javaScript finish this question 1. The application should contain two functions: one to calculate the fuel efficiency in metric units and one to calculate

in javaScript finish this question in javaScript finish this question 1. The application should contain two functions:

1. The application should contain two functions: one to calculate the fuel efficiency in metric units and one to calculate the fuel efficiency in imperial units. 2. The application should: a. Calculate the car fuel efficiency in metric units where the distance driven is 500 kilometres and the fuel consumed is 52.28 litres. Display the fuel efficiency in metric units to two decimal places in the console. b. Calculate the car fuel efficiency in imperial units where the distance driven is 500 kilometres and the fuel consumed is 52.28 litres (metric to imperial conversion needed). Display the fuel efficiency in imperial units to two decimal places in the console. 3. You should not use global variables. The output of the application should be as follows: Your car has a fuel economy of 10.46 litres per hundred kilometres. Your car has a fuel economy of 3.70 gallons per hundred miles. Save your work as username_jv_tma_task2.js and username_jv_tma_task2.html in a folder called jv_tma_task2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!