Question
Project description As a programmer, you have been asked to write a Java console application, using OOP java concepts, for a Company with the following
Project description As a programmer, you have been asked to write a Java console application, using OOP java concepts, for a Company with the following requirements: The Company has several customers and each one of those customers has an ID, name, address, date of birth, mobile phone number and email with suitable data types. Use an ArrayList collection object to hold the customers data. Each customer could also have multiple orders (use an ArrayList collection object to hold orders data for each customer. Each order should have the following attributes: ID, title, model, weight, price and status. The status should only have one of the following values: NEW, PENDING, REFUSED and COMPLETE (make use of Enum).
At the end, you will need to create a testing class (e.g. Company.java) with a static main() method with the following requirements: It must have an initial fixed collection of customers (at least 3 customers with empty orders list) The program will print a selection screen where the operator can choose the operation he/she wants to perform. The selection screen will be repeated after each selection until the operator types the number 8 to exit the program: 1. Add a customer (by providing all her/his information) 2. Add a NEW order to a certain existing customer 3. Print all customers information, without his/her orders data (in a well-tabular form) 4. Print all orders information (in a well-tabular form) including ID and name of the corresponding customer for each order 5. Display specific customer personal data including his/her orders data (by reading the customer ID from the operator) 6. Display specific order data including ID and name of the corresponding customer (by reading order ID from the operator) 7. Print a specific customers bill (in a well-tabular form) by reading the customer ID from the operator and then print all his orders and also print the total price of all orders provided for this customer 8. Exit the program
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