Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project description As a programmer, you have been asked to write a Java console application, using OOP concepts, for a Company with the following requirements:

image text in transcribedimage text in transcribed

Project description As a programmer, you have been asked to write a Java console application, using OOP 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 customer's 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

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

Big Data With Hadoop MapReduce A Classroom Approach

Authors: Rathinaraja Jeyaraj ,Ganeshkumar Pugalendhi ,Anand Paul

1st Edition

1774634848, 978-1774634844

More Books

Students also viewed these Databases questions

Question

design a simple disciplinary and grievance procedure.

Answered: 1 week ago