![Computers and Technology](/tpl/images/cats/informatica.png)
Computers and Technology, 04.03.2020 04:23, skydom654
A. Carly’s Catering provides meals for parties and special events. In Chapter 3, you created an Event class for the company. The Event class contains two public final static fields that hold the price per guest ($35) and the cutoff value for a large event (50 guests), and three private fields that hold an event number, number of guests for the event, and the price. It also contains two public set methods and three public get methods.
Now, modify the Event class to contain two overloaded constructors
∎ One constructor accepts an event number and number of guests as parameters. Pass these values to the setEventNumber() and setGuests() methods, respectively. The setGuests() method will automatically calculate the event price.
∎ The other constructor is a default constructor that passes "A000" and 0 to the two-parameter constructor.
Save the file as Event. java
b. In Chapter 3, you also created an EventDemo class to demonstrate using two Event objects. Now, modify that class to instantiate two Event objects, and include the following new methods in the class:
∎ Instantiate one object to retain the constructor default values
∎ Accept user data for the event number and guests fields, and use this data set to instantiate the second object. Display all the details for both objects.
Save the file as EventDemo. java.
![answer](/tpl/images/cats/otvet.png)
Answers: 3
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 08:00, dustysorrells74
Someone with this coz i don’t really know what i can choose, just pick whatever u want. homework - you need to choose a website that you like or use frequently. you must visit the website and discuss 6 different features/parts/aspects of the website that you think makes it good. (100 words)
Answers: 2
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 07:30, jackie0833
Which option allows you to view slides on the full computer screen?
Answers: 1
Do you know the correct answer?
A. Carly’s Catering provides meals for parties and special events. In Chapter 3, you created an Even...
Questions in other subjects:
![Konu](/tpl/images/cats/informatica.png)
![Konu](/tpl/images/cats/ekonomika.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/obshestvoznanie.png)
![Konu](/tpl/images/cats/informatica.png)
Computers and Technology, 27.10.2020 18:00
![Konu](/tpl/images/cats/ekonomika.png)
![Konu](/tpl/images/cats/User.png)
![Konu](/tpl/images/cats/obshestvoznanie.png)
![Konu](/tpl/images/cats/ekonomika.png)
![Konu](/tpl/images/cats/en.png)
English, 27.10.2020 18:00