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...
-
In Problems 5772, list the intercepts and test for symmetry. y = 4x x + 16
-
When would a burner-management system function be classified as a SIF?
-
During your audit of Carla Pang Inc. you prepared the following bank transfer schedule. Fill out the table below indicating the most likely situation as it relates to cash at year-end. Indicate the...
-
Season's Republic Inc. has a bond outstanding. This bond has a 9.5% coupon paid semiannually, and is selling in the market for $913.00 with 6 years remaining to maturity. What is the bond's YTM?
-
Juliette White is a head of household taxpayer with a daughter named Sabrina. They live at 1009 Olinda Terrace, Apt. 58, Reno, NV 78887. Juliette works at a local law firm, Law Offices of Dane Gray,...
-
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....
-
A plastic ball has radius 12.0 cm and floats in water with 24.0% of its volume submerged. (a) What force must you apply to the ball to hold it at rest totally below the surface of the water? (b) If...
-
Explain the extrinsic and intrinsic tests for determining substantial similarity under copyright law.
-
What additional factors need to be considered by a public-sector service organization developing a communication strategy for its service, compared with the factors facing a private-sector...
-
For the floor system shown in Figure P12.16, draw the influence lines for shear between points \(B\) and \(C\) and for the moment at points \(C\) and \(E\) in the girder. H A B C D 5 @ 24' 120' E F G
-
Who benefits from the Olympic and Amateur Sports Act prohibition of judicial review for eligibility disputes against the USOPC that occur within 21 days of the Games? Does it help or hinder most...
-
What is the function of the National Institutes of Health?
-
For the hypothesis test H 0 : = 10 against H 1 : >10 and variance known, calculate the P-value for each of the following test statistics. (a) z 0 = 2.05 (b) z 0 = 1.84 (c) z 0 = 0.4
-
Express these numbers in standard notation. a. 2.87 10-8 b. 1.78 1011 c. 1.381 10-23
-
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...
-
The setting of a piece of literature may be an important factor that influences the actions of the characters. Two literary works in which the setting plays an important role are The Story of an Hour...
-
Water is flowing in the pipe shown in the figure below, with the 8.45-cm diameter at point 1 tapering to 3.60 cm at point 2, located y = 13.0 cm below point 1. (a) point 1 m/s (b) point 2 m/s
-
A certain target is bombarded by electrons in an x-ray tube. The K, L, and M energy levels have energies 84.7, 14.3, and 2.97 keV, respectively. (a) What is the minimum value of the accelerating...
Study smarter with the SolutionInn App