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

Using C++: Now that we\'ve all heard that VW has been caught inflating its diese

ID: 3798399 • Letter: U

Question

Using C++:

Now that we've all heard that VW has been caught inflating its diesel numbers, let's see a representation of what those fuel efficiency numbers should really be. Using formatted output, create a table that displays the following: The names of five (5) VW models (just pick one Golf and one Beetle model) The claimed MPG ratings from VW The names of five (5) Chrysler / Fiat models (just pick one Jeep, etc - any from that company) The claimed MPG ratings from Chrysler Fiat A cell showing the 10% reduction an owner could expect for each car The newly calculated honest MPG value to the nearest 10th for each car.

I am in need of help on this. I am not sure where to start or where to end.

Explanation / Answer

using namespace std;
#include<iostream>
#include<conio.h>
int main(){
   cout<<"Details are Below"<<endl<<endl;
   cout<<" Vokeswagen Model "<<endl<<endl;
   cout<<"Name Mileage Mileage after 10%Reduction"<<endl;
   cout<<"Beetle "<<27.0<<" "<<24.3<<endl;
   cout<<"Jetta "<<32.5<<" "<<29.25<<endl;
   cout<<"Passat "<<28.3<<" "<<25.47<<endl;
   cout<<"Golf "<<28.8<<" "<<25.92<<endl;
   cout<<"Polo "<<32.9<<" "<<29.61<<endl<<endl;
   cout<<" Fiat /Chrysler Model"<<endl<<endl;
   cout<<"Name Mileage Mileage after 10% Reduction"<<endl;
   cout<<"Chrysler 200 "<<28<<" "<<25.2<<endl;
   cout<<"Chrysler Pacifica "<<33<<" "<<29.7<<endl;
   cout<<"Abarth Punto "<<37<<" "<<33.3<<endl;
   cout<<"Patriot "<<38<<" "<<34.2<<endl;
   cout<<"Wrangler "<<40<<" "<<36<<endl;
}

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