Question: write answer in C language Fuel Consumption =100 litres used /km traveled 1. Write a program that asks the user to input the number of
Fuel Consumption =100 litres used /km traveled 1. Write a program that asks the user to input the number of litres of fuel used and the corresponding distance traveled in kms. Write your program to calculate fuel consumption in a user-defined function. Use the fuel consumption result to display the fuel consumption category the user's car fits into. The fuel consumption categories are as follows: Fuel Consumption Less Than 5 [L/100km] - Very Fuel Efficient Fuel Consumption Between 5 and 10[L/100km] - Reasonable Fuel Consumption Fuel Consumption over 10[L/10km] - Not Fuel Efficient 2. Comment your code appropriately
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
