Question
Assignment Part 3 Details Software Implementation You are free to implement the software however you see fit, however the functionality of the software should be
Assignment Part 3 Details Software Implementation You are free to implement the software however you see fit, however the functionality of the software should be able to match the following output. Note that in the below run of the program I have hard-coded a small number of Product instances so that products exist which can they can be checked out in your code you should do the same. Your program does not have to have the facility to add new products just define a few and use them as demonstrated below. If the final option of (N)ext customer is chosen, the program should run again
Example Program Output
----- Welcome to FedUni checkout! -----
Please enter the barcode of your item: 123 Milk, 2 Litres - $2.0 Would you like to scan another product? (Y/N) y
Please enter the barcode of your item: 456 Bread - $3.5 Would you like to scan another product? (Y/N) y
Please enter the barcode of your item: 999
This product does not exist in our inventory.
Would you like to scan another product? (Y/N) n
Payment due: $5.5. Please enter an amount to pay: 5
Payment due: $0.5. Please enter an amount to pay: -3
We don't accept negative money!
Payment due: $0.5. Please enter an amount to pay: 2
----- Final Receipt -----
Milk, 2 Litres $2.0
Bread $3.5
Total amount due: $5.5
Amount received: $7.0
Change given: $1.5
Thank you for shopping at FedUni! (N)ext customer, or (Q)uit? q
>>>
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