Question: Carlys Catering provides meals for parties and special events. In previous chapters, you developed a class that holds catering event information and an application that

Carly’s Catering provides meals for parties and special events. In previous chapters, you developed a class that holds catering event information and an application that tests the methods using three objects of the class. Now modify the EventDemo class to do the following:

  • Continuously prompt for the number of guests for each Event until the value falls between 5 and 100 inclusive.
  • For one of the Event objects, create a loop that displays Please come to my event! as many times as there are guests for the Event. Save the modified file as EventDemo.java.

Step by Step Solution

3.33 Rating (174 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

class Event public final static double HIGHGUESTPRICE 3500 public final static double LOWGUESTPRICE 3200 public final static int LARGEEVENT 50 private String eventNumber private int guests private dou... View full answer

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 Java Programming Questions!