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...
-
Bob is facing southwest and Angie is facing southeast. they both move a quarter turn to their right. what do one or both of them need to do before they both face northwest?
-
You are the sales manager for a company selling components to companies in the auto industry and are considering upgrading computer equipment for the sales force. Draft a document detailing the...
-
Aaron deposited $900 every 6 months for 20 years into a fund paying 5.5% compounded semi-annually. Five years after the last deposit, he converted the existing balance in the fund into an ordinary...
-
Comment on how the heater temperature (driving force) affects the heat exchanger performance. Compare the heat transfer coefficients of the TD360 a, b, and c heat exchangers for any given flow rate....
-
In designing a fraction nonconforming chart with center line at p = 0.20 and three-sigma control limits, what is the sample size required to yield a positive lower control limit? What is the value of...
-
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) Which of the following species has the greatest polarizability: chloride ions, bromine atoms, bromide ions? (b) Explain your answer.
-
Does pricey medicine make us feel better than cheap medicine? How do we know if a treatment really works or if it is just a placebo effect? Why would people be less likely to take a bargain for...
-
Sawyer Company had the following information for the year: Direct materials used Direct labor incurred (7,000 hours) Actual manufacturing overhead incurred $190,000 $245,000 $273,000 Sawyer Company...
-
Chapman Company obtains 100 percent of Abernethy Company's stock on January 1, 2023. As of that date, Abernethy has the following trial balance: Items Debit Accounts receivable Accounts payable...
-
discuss the emerging field of synthetic biology and its applications in DNA synthesis, genome editing, and the design of novel genetic circuits for biotechnological and biomedical purposes?
-
What are the challenges and ethical considerations associated with personalized genomics and direct-to-consumer genetic testing, particularly regarding privacy concerns, informed consent, and the...
-
What long-term changes should Malik suggest for this organization, if it appears that this employee is not the only one with these complaints?
-
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...
-
make a scenario for each of the following Gesture communication Facial expression communication Oral communication Written communication discuss briefly each scenario
-
Problem 7-30 Holding Period Yield (LO2) The YTM on a bond is the interest rate you earn on your investment if interest rates don't change. If you actually sell the bond before it matures, your...
-
According to theknot.com, online dating is the most common way people meet their spouses today. This claim was based on a survey of 1,400 randomly selected recently married couples, with 266...
Study smarter with the SolutionInn App