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...
-
1. What argument against womens rights did Thomas Taylor make? 2. Why does Singer believe that the response to this argument, which stresses the similarity between women and men, does not go far...
-
Name and explain two allocation rules and two allocation keys. Why are allocation rules and keys important to lower-level management? If you were a site manager in a chemical company, with a single...
-
A partially completed worksheet for Christopher Cobb, CPA, for the month ending June 30, 2016, is shown below. INSTRUCTIONS 1. Record the balances as of June 30 in the ledger accounts. 2. Prepare the...
-
Your workforce in the sales department consist of 30 workers. 10 are baby boomers born between 1945 and 1964, 10 are Generation X born 1965-1980, and 10 Generation Y born 1981-2000. You are...
-
An open-plan office has ten desks. If ten people work in the area, how many different seating arrangements are there? If two people leave, how many arrangements are there?
-
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....
-
Systematic versus Unsystematic Risk Consider the following information about Stocks I and II: The market risk premium is 8 percent, and the risk-free rate is 4 percent. Which stock has the most...
-
Describe the potential consequences of high government debt. How does government debt impact future economic growth?
-
What happens to the price and quantity demanded of peanuts when a new study suggests peanuts are high in cholesterol and the cost of farm labor increases? (assume upward sloping supply curve and...
-
Jiffy Service is a call center with several business units. One of its business units staffs four operators who provide support for an industrial plumbing supply company. Calls arrive during business...
-
Prepare the journal entries to record payroll for the employee and record the employer's contribution. Assume the employee was paid immediately. For transactions with more than one credit, enter the...
-
A grocery chain produce purchaser finds out that some of the banana plantations that supply his distributor use child labour. a. What risk does this pose for the grocery chain? b. What recommendation...
-
The decision was made by NASA to abandon rocket-launched payloads into orbit around the earth. We must now rely on the Russians for this capability. Use the principles of engineering economy to...
-
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...
-
On January 1, Year 1, Beatie Company borrowed $210,000 cash from Central Bank by issuing a five-year, 7 percent note. The principal and interest are to be paid by making annual payments in the amount...
-
In the month of November, Kingbird Storage Company Inc. wrote checks in the amount of $53300. In December, checks in the amount of $72910 were written. In November, $48776 of these checks were...
-
Jessica and Gregory are married and file a joint return. They expect to have $425,000 of taxable income in the next year and are considering whether to purchase a personal residence that would...
Study smarter with the SolutionInn App