Question: Create a flowchart and the Python code for the following problem: A gas pump pumps gas at $2 / gallon. The customer enters the cash
Create a flowchart and the Python code for the following problem: A gas pump pumps gas at $2 / gallon. The customer enters the cash ( in whole dollars ) and the pump pumps the equivalent gallons of gas. As the pump pumps each gallon, it displays the amount of gas pumped so far. At the end, it pumps any remaining fraction of a gallon and displays the total pumped.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
