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
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started