Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Luc Perkins, Eric Redmond, Jim Wilson

2nd Edition

1680502530, 978-1680502534

Students also viewed these Databases questions

Question

4. What advice would you give to Carol Sullivan-Diaz?

Answered: 1 week ago