Answer to Question #263562 in Java | JSP | JSF for TayyyyyTayyyyy

Question #263562

Create a class customer having id, name, gender, and bill provide appropriate getters/setters and constructors also provide toString method. In the Store class, make an ArrayList of customers, store name, and address implement methods

public void addSale(Customer c) that will add customers to the arraylist.

public void RemoveCustomer(int id);

public void UpdateCustomerRecord(int Id);

public displayAll();

public String nameOfBestCustomer() to record the sale and return the name of the customer with the largest sale.

public ArrayList nameOfBestCustomers(int topN)

 so that it displays the top customers, that is, the topN customers with the largest sales, where topN is a value that the user of the program supplies.

Write a program that prompts following menu and

1. Add Customer record

2. Delete Customer record

3. Update Customer record

4. View all Customers

5. View Best Customer.

6. Find Customer by ID.

  Exit: Ask the user to enter his/her choice then perform the desired function as long as he/she wants.



1
Expert's answer
2021-11-09T12:58:58-0500
Dear TayyyyyTayyyyy, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS