Question: Problem 1 : Fuel Efficiency Design a program that calculates the fuel cost per 1 0 0 miles and how far the car can go
Problem : Fuel Efficiency
Design a program that calculates the fuel cost per miles and how far the car can go with a full tank of gas.
Your program needs to acquire the following inputs from the user:
the number of gallons of gas in the tank
the fuel efficiency in miles per gallon
the price of gas per gallon
Your program needs to display the cost per miles and how far the car can go with a full tank of gas.
Extra requirements:
Your program must start with a display to the user what the program does.
When acquiring the information from the user, your program must give clear instruction on what data
the user should input and in what format whole number or floatingpoint number
When displaying any monetary amount, your program must prefix the amount with $ and keeps
exactly two digits after the decimal points.
The variable names must be descriptive to the quantity they represent.
The number of miles the car can go with a full tank of gas must be displayed as a whole number.
Your code for this problem
Run the code and insert the result in the following box.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
