Description of this paper

A super market

Description

solution


Question

A super market wants you to write a program for their automatic checkout machine. The program should do the following;1. Display a welcome message.;2. Ask customer for any discount cards.;3. Check to see that customer has placed items in presale position.;3. Ask customer to scan first item.;a. Display price;4. Continue to prompt customer for additional items to be scanned.;a. Display all prices;b. Display total price;5. When scanning done check to see that number of scanned items equals the number of items in presale position.;6. If there are less items in the scanned position than the presale position, ask customer to place missing item on;scanner.;7. If customer refuses to do this after 1 minute call attendant.;8. Add 7% sales tax;a. Add to total;9. When all items scanned ask custmer for method of payment.;a. If card ask whether credit or debit.;1. If credit ask for ZIP code;2. Compare with known ZIP code;a. ZIP should be known from customer discount card;3. If debit ask for PIN;a. PIN should be on discount card.;b. If cash;1. Ask customer to submit coins first.;a. Machine should give program a signal for the following;1. Slot 1 detects pennies.;2. Slot 2 detects nickels.;3. Slot 3 detects dimes.;4. Slot 4 detects quarters.;5. Slot 5 detects half dollars;6. Slot 6 detects silver dollars.;2. Ask customer to submit paper money second.;a. Machine should give program a signal for the following;1. Camera 1 detects ones and compares to stored image;2. Camera 2 detects fives and compares to stored image;3. Camera 3 detects tens and compares to stored image;4. Camera 4 detects twenties and compares to stored image;5. Camera 5 detects fifties and compares to stored image;6. Camera 6 detects hundreds and compares to stored image;9. At each stage of payment, the amount deposited should be deducted from the total due.;a. If change is due customer program should send signal to perform the following;1. If amount due is greater than or equal to one hundred dollars send signal to hundred dispenser;a. Deduct from change due;2. If amount due is greater than or equal to fifty dollars send signal to fifty dispenser;a. Deduct from change due;3. If amount due is greater than or equal to twenty dollars send signal to twenty dispenser;a. Deduct from change due;4. If amount due is greater than or equal to ten dollars send signal to ten dispenser;a. Deduct from change due;5. If amount due is greater than or equal to five dollars send signal to five dispenser;a. Deduct from change due;6. If amount due is greater than or equal to one dollar send signal to one dispenser;a. Deduct from change due;7. If amount due is greater than or equal to fifty cents send signal to fifty cent dispenser;a. Deduct from change due;8. If amount due is greater than or equal to 25 cents send signal to 25 cent dispenser;a. Deduct from change due;9. If amount due is greater than or equal to 10 cents send signal to 10 cent dispenser;a. Deduct from change due;10. If amount due is greater than or equal to five cents send signal to five cent dispenser;a. Deduct from change due;11. If amount due is greater than or equal to one send signal to one cent dispenser;a. Deduct from change due;10. When transaction done display a thank you message and print a receipt.;11. Receipt should contain the following;a. List of all items purchased and price;b. The tax added.;c. Any store specials;d. A phone number for complaints.;e. A customer satisfaction survey.;f. A warm closing

 

Paper#69896 | Written in 18-Jul-2015

Price : $27
SiteLock