Question: Write a program that prompts a user for a number of vehicles in a fleet and a fuel consumption for each vehicle. Than program calculates

Write a program that prompts a user for a number of vehicles in a fleet and a fuel consumption for each vehicle. Than program calculates and displays the average gasoline consumption for a fleet of vehicles
Input: Number of Vehicles
Output: Average of all vehicles gas consumption
Output:
ClUsers|owner|source|repos|Grading|x64|Debug|Grading, exe
Fleet Average Gas Consumption ...
Enter a number of vehicles: 3
What is milles/gallon consumption for a vehicle number 1?22.1
that is milles/gallon consumption for a vehicle number 2?19.3
What is milles/gallon consumption for a vehicle number 3?18.7
The average fuel consumption per vehicle is 20.0 miles per gallon
Author: Stevan Stankovic
 Write a program that prompts a user for a number of

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!