Question
Today you're tasked with writing a code that recreates a gas station pump facsimile. Things you'll need to consider: Gas has a cost per gallon
Today you're tasked with writing a code that recreates a gas station pump facsimile. Things you'll need to consider:
Gas has a cost per gallon that needs to be communicated to the customer
You've got to take money from the customer first - no fancy schmancy shut offs here!
A display must accurately tell the consumer what they spent and how much gas was dispensed
When one transaction is over, quite probably another one is about to take place
The machines are shut down when the proprietor of the establishment enters a secret value
Just like previous challenges, there is a physical component to this in the real world that you'll recreate with formatted output
Good end user design evidenced by prompting that leads a user to a correct / complete interaction
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
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