Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Project Objectives GROUP PROJECT 1. To achieve the following Learning Outcome (CO): CLO 3 - Formulate computational solutions for a given scenario as

imageimage

1. Project Objectives GROUP PROJECT 1. To achieve the following Learning Outcome (CO): CLO 3 - Formulate computational solutions for a given scenario as a group project by using learned algorithms and data structures. 2. To design Abstract Data Types (ADTS) (with UML diagrams, flow chart, specifications and implementation). 3. To present a complete report (documentation) detailing the whole process of completing the project and final result (output). 2. Important Details You are allowed to form a group of 5/6 students. This project contributes to 40% of your total coursework. The group leader is required to delegate tasks to group members accordingly. 3. Question Your task is to design and develop Java application(s) to execute a process of Hypermarket Self-Checkout Automated System. The system will generate the total and receipts of the amount that have been paid by the customer. The details are as follows: Phase 1 (ArrayList, LinkedList) 1. Create the following classes named CustomerInformation (use appropriate attributes such as custid, custIC and CounterPaid) and ItemInformation (with the instance variables such as itemId, itemName, itemPrice, datePurchase). You may add additional attributes to the classes when necessary. Relate these classes using has-a relationship. Then, create an arraylist object named purchased Items List containing the objects of Item Information class. The purchased Items List arraylist keeps the list of items purchased by the customers. 2. Store all customer information in a LinkedList named customerList. Please be noted that fast counters (counter no. 1 and counter no.2) are for customers who purchase max of 5 items ONLY. Phase 2 (Queue) 3. If a customer buys 5 items or less, he/she can go to Counter 1 or 2 to make a payment. The first customer who buys 5 items will be directed to Counter 1, the second customer who buys 5 items or less will be directed to Counter 2, the third customer who buys 5 items or less will be redirected to Counter 1 again and so on. Customers who buy more than 5 items, they will be redirected to Counter 3. This process will be repeated until no more records (customer and items purchased) are in the input file. 4. Create 3 queue objects and store list of customer information and items purchased to be paid for each counter (Counter 1, 2 or 3) respectively. Then, display the information related to the customer, items purchased and total amount paid (receipt) from each queue accordingly. Other requirements: Your system should be able to read data from file(s). The expected input is: Input file to store at least 100 customers who will use self-checkout automated system. And your system should have the following basic functions: Invoke no-args/normal constructors. Add new customer line up in a queue/list. Remove the respective customer/items from queues when necessary. Display customer details and items purchased after he/she makes payment.

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

Fundamentals of Cost Accounting

Authors: William Lanen, Shannon Anderson, Michael Maher

3rd Edition

9780078025525, 9780077517359, 77517350, 978-0077398194

More Books

Students also viewed these Programming questions

Question

Calculate [OH-] and pH for (a) 1.5 ( 10-3 M Sr(OH2),

Answered: 1 week ago