Question: Need Help solving this program. NEEDS TO BE IN C++ ONLY. I have provided the picture below. ECECS17M-Lec122-C-+3CECS17M-Lect21-C++DasicsCECs171-Lect21--asicsCECS174-Lectz5-c++Basics Labz.pef lile:// C:/UsesIA13/Downluach/Lab2.pdl Problem 2: Write a
Need Help solving this program. NEEDS TO BE IN C++ ONLY. I have provided the picture below.

ECECS17M-Lec122-C-+3CECS17M-Lect21-C++DasicsCECs171-Lect21--asicsCECS174-Lectz5-c++Basics Labz.pef lile:// C:/UsesIA13/Downluach/Lab2.pdl Problem 2: Write a program that asks the user to enter his/her first and last name, name of the car he/she has, number of miles traveled and number of gallons of gasoline consumed. The program should then calculate and display miles-per-gallon value, showing one place to the right of decimal. Next, using the fact that one gallon is about 3.785 litters and one mile is about 1.609 kilometers, it should convert the mile-per-gallon value to a liters-per-100-km value (European way of expressing fuel consumption), and display the result, showing one place to the right of the decimal Sample run result: Enter you first and last name: Melisa Honeybee Enter the name of car you have: Nissan Enter the number of miles traveled: 28000 Enter the number of gallons consumed: 2000 Hey Melisa Honeybee your Nissan fuel consumption is 14.0 mpg or 16.8 liters/ 100 km O Type here to search 448 PM 2/10/2018 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
