You created an interactive StaffDinnerEvent class that obtains all the data for a dinner event for Carlys
Question:
You created an interactive StaffDinnerEvent class that obtains all the data for a dinner event for Carly’s Catering, including details about the staff members required to work at the event. Now, modify the class so that it becomes immune to user data entry errors by handling exceptions for each numeric entry. Each time the program requires numeric data—for example, for the number of guests, selected menu options, and staff members’ salaries—continuously prompt the user until the data entered is the correct type. Save the revised program as guests, selected menu options, and staff members’ salaries—continuously prompt the user until the data entered is the correct type. Save the revised program as StaffDinnerEvent.java.
Step by Step Answer:
class Event public final static double HIGHGUESTPRICE 3500 public final static double LOWGUESTPRICE 3200 public final static int LARGEEVENT 50 public final static int EVENTNUMLENGTH 4 public final sta...View the full answer
Students also viewed these Computer science questions
-
a. You created an interactive StaffDinnerEvent class that obtains all the data for a dinner event for Carlys Catering, including details about the event and all the staff members required to work at...
-
You created an interactive RentalDemo class that obtains all the data for four rentals from Sammys Seashore Rentals, including details about the contract number, length of the rental, and equipment...
-
a. You created an interactive RentalDemo class that obtains all the data for four rentals from Sammys Seashore Rentals, including details about the contract number, length of the rental, and...
-
A set of 2M biorthogonal signals is obtained from a set of M orthogonal signals by augmenting it with the negative of each signal in the set. (a) The extension of orthogonal to biorthogonal signals...
-
Faith, who is single, sells the following assets during 2016: 20,000 shares of qualified small business stock at a loss of $62,000. Faith bought the stock in 2011. 1,200 shares of Geelong...
-
Draw a hypothetical free-energy diagram for the SN2 reaction of iodide anion with 1-chlorobutane. Label the diagram as in Fig. 6.4, and assume it is exergonic but without specific values for G¡...
-
11. What are the responsibilities of the functional manager in a matrix organization?
-
Ironjay, Inc., produces two types of weight-training equipment: the jay-flex (a weight machine that allows the user to perform a number of different exercises) and a set of free weights. Ironjay...
-
The table below shows the expected rates of return for three stocks and their weight in some portfolio: Stock A Stock B Stock C Expected return 0.07 0.03 0.14 Weight 0.4 0.2 0.4 What is the expected...
-
The Graphic Palette is a firm in Charleston, South Carolina, that does graphic artwork and produces color and black-and-white posters, lithographs, and banners. The firm's owners, Kathleen and...
-
You created a Quiz class that contains an array of 10 multiplechoice questions to which the user was required to respond with an A, B, or C. At the time, you knew how to handle the users response if...
-
Which of the following statements is true? a. Volatile storage lasts only a few seconds. b. Volatile storage is lost when a computer loses power. c. Computer disks are volatile storage devices. d....
-
Using Fig. 4.78 , design a problem to help other students better understand superposition.The letter k is a gain you can specify to make the problem easier to solve but must not be zero. For the...
-
The problem I have identified is that healthcare leaders could benefit from addressing the issue of stress and burnout, which impact revenue (Scott, 2022). I have found a peer-reviewed article...
-
Facebook, Inc is the company Complete a 3-5 year forecast for your target company assuming a 10% average growth rate for the duration of the forecast period Assuming a long-term growth rate of 5%...
-
BSC-It is important for healthcare leaders to link their departmental balanced scorecard (BSC) to a corporate BSC because it facilitates alignment with the overall strategic objectives of the...
-
Hebert Company adds material at the beginning of production. The following production information is available for March: Beginning Work in Process Inventory (40% complete as to conversion) Started...
-
What modifications would you suggest the leaders of the steel organization when dealing with the use of more efficient technology, carbon emissions, and negative economic impacts in order tomake in...
-
The following frequency distribution contains the educational levels attained by the 39 office personnel of a small company: Given the level at which educational level was measured (nominal, ordinal,...
-
Nitrogen monoxide reacts with hydrogen as follows: 2NO(g)+ H2(g) N2O(g) + H2O(g) The rate law is [H2]/ t = k[NO]2[H2], where k is 1.10 107 L2/(mol2s) at 826oC. A vessel contains NO and H2 at...
-
Some programmers use a convention called Hungarian notation when naming their variables and class fields. What is Hungarian notation, and why do many object-oriented programmers feel it is not a...
-
The Information Services Department at the Springfield Library has created methods with the following signatures: a. Design an interactive program that does the following, using the prewritten...
-
Create the logic for a program that prompts a user for six numbers and stores them in an array. Pass the array to a method that calculates the arithmetic average of the numbers and returns the value...
-
Simpson Ltd is a small IT company, which has 2 million shares outstanding and a share price of $20 per share. The management of Simpson plans to increase debt and suggests it will generate $3 million...
-
The following are the information of Chun Equipment Company for Year 2 . ( Hint: Some of the items will not appear on either statement, and ending retained earnings must be calculated. ) Salaries...
-
Alta Ski Company's inventory records contained the following information regarding its latest ski model. The company uses a periodic inventory system. Beginning inventory, January 1, 2018 1,250 units...
Study smarter with the SolutionInn App