Question: write a python program for the following problem: You work for a convenience store chain as a software developer. You have been tasked to create

write a python program for the following problem: You work for a convenience store chain as a software developer. You have been tasked to create a simple gas pump application that calculates the amount of fuel purchased at a pump. Since you dont have an actual pump with which to pump the fuel, you will use user input statements. The pump will dispense three grades of gas (87, 89 and 93 octane), each with a different price. The output of the application will be the total purchase in dollars and cents. The python application will employ, at a minimum, an input function, a processing function and an display function in addition to the main function.

This problem will require multiple IF Statements to operate properly.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!