Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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_task2Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started