Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

Code import javautilScanner public class CustomerManagementSystem private static final int MAXCUSTOMERS 100 private static String customerNames new StringMAXCUSTOMERS private static int customerIds ne... 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

Introduction to Java Programming, Comprehensive Version

Authors: Y. Daniel Liang

10th Edition

133761312, 978-0133761313

More Books

Students also viewed these Programming questions

Question

How would you describe the work atmosphere?

Answered: 1 week ago