Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

More Books

Students also viewed these Databases questions