Question
Yummy Catering Yummy Catering provides meals for parties and special events. In previous chapters, you developed a class named Event that holds catering event information.
Yummy Catering
Yummy Catering provides meals for parties and special events. In previous chapters, you developed a class named Event that holds catering event information. Now create an EventDemo application to do the following:
Create three event objects.
Continually prompt the user for the number of guests for each event until the value falls between 5 and 100 inclusive.
Display the details for each event object.
For the event object with the fewest number of guests, create a loop that displays Please come to my event! as many times as there are guests for the event.
Save the file as EventDemo.java.
Sunshine Seashore Supplies
Sunshine Seashore Supplies rents beach equipment to tourists. In previous chapters, you developed a Rental class that holds equipment rental information and an application that tests the methods using three objects of the class. Now create a RentalDemo class to do the following:
Construct three rental objects.
Continually prompt the user for the number of minutes of each rental until the value falls between 60 and 7,200 inclusive.
Display the details for each rental object.
Display Have fun and be safe in Hour 1, Have fun and be safe in Hour 2, and so on for the number of hours in the shortest rental.
Save the file as RentalDemo.java.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started