Question: Create a flow chart Create a flowchart and the Python code for the following problem: (45 pts) A gas pump pumps gas at $2/ gallon.
Create a flowchart and the Python code for the following problem: (45 pts) A gas pump pumps gas at $2/ gallon. The customer enters the cash Lin 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 2. t look as follows: Enter cash amount in whole dollars: 5 Gas pumped: 1 Gas pumped: 2 Total gas pumped: 2.5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
