Question: Java Program Requirements A party planner needs to do calculations for an event, based on the number of guests and the size of tables. Class

Java Program Requirements A party planner needs to do calculations for anevent, based on the number of guests and the size of tables.Class files are PartyPlanner.java and Party.java Documentation: Only the top of fileJava

Program Requirements A party planner needs to do calculations for an event, based on the number of guests and the size of tables. Class files are PartyPlanner.java and Party.java Documentation: Only the top of file descriptions an author tags are required for this program. Test 1 (5 pts) Within the PartyPlanner class Write the code to read the number of guests and table capacity (i.e. number of people that each table will hold) from the user as integers After reading the first input, display a "Guest input valid integer" message After reading the second input, display a "Table input valid integer" message Example Enter number of guests: 10 Guest input valid integer Enter capacity of one table: Table input valid integer Tests 2 through 4 (10 pts, 10 pts, 5 pts) Within the PartyPlanner class: Add an exception handler that includes o A trv block around the code that reads the user inputs If no exception is thrown after reading the first input, display the same "Guest input valid integer" message as before If no exception is thrown after reading the second input, display the same "Table input valid integer" message as before o A catch block to catch the InputMismatchException thrown if the user does not enter an integer for one of the inputs . The catch block should display "Error - did not enter an integer value" Test 5 (10 pts) Within the Party class . Add a constructor that has parameters for both data fields Add getters for both data fields

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!