Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In C# write a MPG car mileage program Add some data input from the user for his or her name Add some data input from
In C# write a MPG car mileage program Add some data input from the user for his or her name Add some data input from the user for the destination of the trip Report back to the user with an output message similar.to the following (don't copy my output statements exactly make up your own) . Add a results message categorizing the mileage in 1 of 3 categories Sample Output: Jason Lee, your trip to Atlanta was very economical. . You traveled xxx miles to reach vour destination, You consumed yx. gallons of fuel. . You achieved a fuel efficiency rating of zzz miles per gallon! . With an MPG rating of over 30.0, this is considered very good. Here is a second example Jason Lee, your trip to Atlanta was economical. .You traveled xxx miles to reach your destination using only yx.x gallons of fuel. .Your fuel efficiency rating on this trip was zzz mpg . With an MPG rating approaching 30.0, this is considered acceptable And finally: Jason Lee, your trip to Atlanta was not very economical. . You traveled xxx miles to reach your destination, but your vehicle used yyy gallons of fuel. . This is only zzz miles per gallon. . With an MPG rating under 20.0, this is a cause for concern
Step 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