Question: I am having difficulties coming up with a C++ program for a gas pump display system such as this text that was displayed in my
I am having difficulties coming up with a C++ program for a gas pump display system such as this text that was displayed in my professor's video:
1. Welcome
< Pay here with Debit (Selected)
< Pay her with Credit
< Pay Inside
2. Insert debit card
PLEASE REMOVE CARD
ONE MOMENT PLEASE
3. Enter PIN code on the keypad (unknown 4 PIN code number was selected)
Press enter when done (Enter pushed)
**Authorizing**
4. Car Wash today?
< Yes
< No (Selected)
5. Remove Nozzle And Push Start Button Below to Begin Fueling (Nozzle removed and Start Button pushed)
6. THANK YOU FOR SHOPPING AT FAST MARKET
7. Would you like a receipt?
< Yes (Selected)
< No
8. Printing receipt
Thank You
Please Take Your Receipt
p.s: I have never done programming before and this assignment was given out in just my fourth week of starting out. You may have to explain to me like I'm a freaking five-year-old. A not so smart one XD
p.s.s: Numbers 1, 2, 3, etc were used for organizing steps and parentheses were placed as notes of selections by my professor
Edit: I do want it displayed on the screen. Sorry, I forgot to mention that. Here are the best inputs and cases I can come up with:
Input "Welcome"
Case 1: Pay here with debit inputs ""Insert debit card"
Pay here with credit inputs "Insert credit card"
Pay inside inputs "Pay cashier inside at counter". Skip to step 5 after the cashier process
Input "PLEASE REMOVE CARD" after either "Inside debit card" or "Insert credit card"
Input "ONE MOMENT PLEASE" after "PLEASE REMOVE CARD"
Input "Enter PIN code on the keypad" and "Press enter when done"
Create a unique PIN code for a debit or credit card that only works for that
Input "**Authorizing**" after PIN code is successfully entered
Case 2: Car Wash Today?
Yes inputs "Use brush and press button for soap on brush" and then transfers to the No input
No inputs "Remove Nozzle and Push Start Button Below to Begin Fueling"
Entering "Start" inputs "THANK YOU FOR SHOPPING AT FAST MARKET"
Case 3: Inputs "Would you like a receipt?"
Yes Inputs "Printing Receipt" then "Thank You" then "Please Take Your Receipt" and then resets back to step 1
No Input resets back to step 1
Note: Thank you for helping me btw:) Tell me if I need more cases
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
