Question: Write a program that calculates and displays: A) The MPG (in whole numbers) of a car that can travel 400 miles on a 16 gallon
Write a program that calculates and displays: A) The MPG (in whole numbers) of a car that can travel 400 miles on a 16 gallon fuel tank. Solution to Part A //A) The MPG of a car that can travel 400 miles on a 16 gallon fuel tank. unsigned int miles 400 unsigned int gallons 16 unsigned int MilesPerGallon; MilesPerGallon miles/gallons cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
