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

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!