Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Modeling Fuel Economy simplified analysis of a certain vehicle indicates that it

ID: 3728077 • Letter: M

Question

Modeling Fuel Economy simplified analysis of a certain vehicle indicates that its fuel economy can be modeled by a 2d order polynomial of the form y Ax+Bx+C,where y fuel economy (in miles per gallon, mpg) x speed (in miles per hour, mph) In the graph below, A- -0.004, B-0.45, and C-16. The graph indicates that the maximum fuel economy occurs at a speed of about 56 mph. Fuel Economy vs Speed 29.00 27 5.00 23.00 2 1.00 19 00 17.00 15.00 20 30 50 60 70 80 Speed (mpg Program Requirements: Write a C++ program to perform various calculations related to the fuel economy of a vehicle where the fuel economy is modeling using a polynomial of the form y Ax2+ Bx+ C, where fuel economy in miles per gallon (mpg) x-speed in miles per hour (mph) In particular 1. Inputs: The user should be prompted to input the following information. · The values for coefficients A, B, and C used to model the fuel efficiency .The capacity of the fuel tank (in gallons). The current amount of fuel in the tank (in gallons). · The current speed of the vehicle (in mpg) · The distance to be travelled on the current trip (in miles) · The cost per gallon for gasoline The minimum speed, Smin, to be used in the table of Fuel Economy vs Speed · The maximum speed, smax, to be used in the table of Fuel Economy vs Speed · The speed increment, sinc, to be used in the table of Fuel Economy vs Speed

Explanation / Answer

#include using namespace std; const double GALLONS = 0.264179; double MilesPerGallon(double miles, double gallons); int main() { int liters; double miles; double MPG; char repeat; do { cout > liters; cout > miles; MPG = miles / (liters * GALLONS_PER_LITER); //display results cout.setf(ios::fixed); cout.setf(ios::showpoint); cout.precision(2); cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote