Write a Java program that displays a menu to allow the user the following functionality: 1....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
Code import javautilScanner public class CustomerManagementSystem private static final int MAXCUSTOMERS 100 private static String customerNames new StringMAXCUSTOMERS private static int customerIds ne... View the full answer
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date:
Students also viewed these programming questions
-
You have now been asked to work with a textile startup business that your firm has just taken on as a client. The business is particularly in need of support and guidance with budgeting and how it...
-
Write a java program that displays a student's status based on the following codes: Code Student Status 1 Freshman 2 Sophomore 3 Junior 4 Senior Your program should accept the code number as a...
-
A Graphical User Interface for my database. the interface must include a set of forms and/or menu as per submission requirement below. However, the table using is called musicians instead of the...
-
By knowing the value of e/m how you will calculate the mass of an electron?
-
Blue Skies Aviation is a manufacturer of small single-engine airplanes. The company is relatively small and prides itself on being the only manufacturer of customized airplanes. The companys high...
-
Compute the standard deviation of this data: 3 2 4 1 Step 1: Find the mean of the data. Step 2: Subtract the mean from each data point. These differences should sum to 0. Step 3: Square each...
-
The Tuckers owned an RV that they insured through American Family. On August 26, 2012, their RV was struck by lightning and damaged. The Tuckers reported the damage to American Family. In March 2013,...
-
The Lucky Seven Company is an international clothing manufacturer. Its Redmond plant will become idle on December 31, 2014. Peter Laney, the corporate controller, has been asked to look at three...
-
data in Range N 6 : Y 4 3 describes NFL quarterback ( QB ) statistics for the 2 0 1 3 season. Write different formulas for the following questions. Name Team G QBRat Comp Att Pct Yds Y / G Y / A TD...
-
On January 1, 2024, Tennessee Harvester Corporation issued debenture bonds that pay interest semiannually on June 30 and December 31. Portions of the bond amortization schedule appear below:...
-
Wage Bracket Method Tables for Income Tax Withholding - 2019 Lisa Is single and clalms one allowance. Assume that her employer uses wage bracket tables method. Use withholding allowance, wage bracket...
-
1. Assume that a C++ program is to be written to calculate the total resistance of a series circuit. In such a circuit the total resistance is the sum of all individual resis- tance values. Assume...
-
Maria is traveling for business. She starts by traveling from Mexico City to Singapore which is about 1.26times 10^(4) miles. She then travels from Singapore to New York which is approximately...
-
Alex was able to contribute to a 401K at his first job until the age of 30. The account had $24,000 when contributions stopped. The money continued to earn interest, compounded quarterly, at a rate...
-
Sugarland Industries reported a net income of $790,750 on December 31, 2021. At the beginning of the year, the company had 540,000 common shares outstanding. On April 1, the company sold 29,400...
-
A private plane traveled from Seattle to a rugged wilderness, at an average speed of 264 mph. On the return trip, the average speed was 220 mph. If the total traveling time was 4 hours, how far is...
-
In September 2022, Terra Ltd. has decided to increase the sale discounts to clients who purchase a particular vegan product. This product is supplied by the company Aliser Ltd. In August 2022, Aliser...
-
For the following exercises, write the first four terms of the sequence. a n = 2 n 2
-
Create a new class named MyGraph as a subclass of UnweightedGraph that contains a method for finding all connected components in a graph with the following header:public?List>...
-
Write a program that lets the user to enter the order and display the filled Sierpinski triangles as shown in Figure 18.18. Enter an order: Enter an order: Enter an order: Enter an order:
-
Listing 12.16, ReplaceText.java, gives a program that replaces text in a source file and saves the change into a new file. Revise the program to save the change into the original file. For example,...
-
Test the overall significance of a regression model and identify the components of this test from your computer output.
-
Identify the sample.
-
Based on the strategy, what type of sampling technique will be used to identify the sample? a. Why did you choose this type of technique?
Study smarter with the SolutionInn App