Question: Write a Java program that displays a menu to allow the user the following functionality: 1. Add multiple new customers - prompt user for
Write a Java program that displays a menu to allow the user the following functionality: 1. Add multiple new customers - prompt user for the number of customers to be loaded and then prompts for each customer's name, customer id (5-digit number), and total sales 2. Add single new customer - prompts the user for customer data: customer name, customer id, and total sales 3. Display all customers - displays each customer's data to the console, one customer per line 4. Retrieve specific customer's data - prompts the user for the customer id and displays the corresponding customer's data: customer id, customer name, and total sales 5. Retrieve customers with total sales based on the range - prompts the user for the lowest and highest total sales and displays all customers with total sales in that range. Display each customer on a separate line with all information - Customer Name, Customer ID, and Total Sales 6. Exit MENU 1: Add multiple new customers 2: Add single new customer 3: Display all customer 4: Retrieve specific customer's data 5: Retrieve customers with orders based on range 9: Exit program Enter your selection : Design and implementation notes: o Each menu selection should be implemented as a separate method o Customers' data should be saved in arrays, you can allocate a maximum of 100 elements o After completion of each selection, the program should display the menu again to allow the user another selection until they select Exit
Step by Step Solution
3.50 Rating (153 Votes )
There are 3 Steps involved in it
Code import javautilScanner public class CustomerManagementSystem private static final int MAXCUSTOMERS 100 private static String customerNames new StringMAXCUSTOMERS private static int customerIds ne... View full answer
Get step-by-step solutions from verified subject matter experts
