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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Java Programming

ISBN: 978-1337397070

9th edition

Authors: Joyce Farrell

Question Posted: