1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Ymorist [56]
3 years ago
10

. Carly's Catering provides meals for parties and special events. In Chapter 2, you wrote an application that prompts the user f

or the number of guests attending an event, displays the company motto with a border, and then displays the price of the event and whether the event is a large one. Now modify the program so that the main() method contains only three executable statements that each call a method as follows:
Engineering
1 answer:
klio [65]3 years ago
6 0

Answer:

Explanation:

public class Event

  public final static int PRICE_PER_GUEST = 35;

  public final static int CUT_OFF = 50;

 

  //Attributes

  private String eventNum;

  private int noOfGuest;

  private int price;

 

  /**

  * param eventNum the eventNum to set

  */

  public void setEventNum(String eventNum)

      this.eventNum = eventNum;

 

 

  /**

  * param noOfGuest the noOfGuest to set

  */

  public void setNoOfGuest(int noOfGuest)

      this.noOfGuest = noOfGuest;

      this.price = this.noOfGuest * PRICE_PER_GUEST;

 

 

  /**

  * return the eventNum

  */

  public String getEventNum()

      return eventNum;

 

 

  /**

  * return the noOfGuest

  */

  public int getNoOfGuest()

You might be interested in
Sketch the velocity profile for laminar and turbulent flow.
Margarita [4]

Answer:

The laminar flow is generally given in high viscosity fluids such as honey or oil, it has the characteristic of flowing in an orderly manner, the walls of the tube have a zero speed while in the center it has a maximum speed.

turbulent flow is characterized by fluid velocity vectors presenting themselves in a disorderly manner and in all directions.

I attached the drawings for the velocity profile in laminar and turbulent flow.

4 0
3 years ago
A vertical piston-cylinder device contains water and is being heated on top of a range. During the process, 10 kJ of heat is tra
grigory [225]

Answer: 9.9KJ

Explanation: Q = U + W + losses

Q is heat transfered to the water

U is the change in energy of the system

W is work done by the system = 2J

Losses = 80J

Heat into system is 10kJ = 10000KJ

Therefore

U = Q - W - losses

U = 10000 - 2 - 80 = 9990J

= 9.9kJ

6 0
3 years ago
A ruptured desiccant bag in a reciever-driver is usually caused by what?​
ollegr [7]

Answer: Bad A/C

Explanation: ...

4 0
2 years ago
Michelle is the general manager of a power plant. This morning, she will meet with city officials to discuss environmental issue
Irina-Kira [14]

Answer:

interpersonal.

Explanation:

Out of all the activities performed by Michelle, three activities involves the interpersonal skills.

1. Meeting with city officials

2. Meeting with section managers

3. Handling the complaint filed by an employee

All these activities involves interpersonal skills. Hence, we can say that she had spent her most of the day by using the interpersonal skills.

6 0
3 years ago
Most equipment is cooled by bringing cold air in the front and ducting the heat out of the back. What is the term for where the
vitfil [10]

Answer: Hot aisle

Explanation:

6 0
2 years ago
Other questions:
  • Drag each tile to the correct box.
    15·1 answer
  • You are preparing to work with Chemical A. You open the appropriate storage cabinet, and notice Chemical B, as well as Chemical
    9·1 answer
  • Who is using welding symbols to to communicate the detailed information necessary for welders to complete the weld?
    6·1 answer
  • For an AC machine, what percentage of power is at the negative terminal?
    14·1 answer
  • The production of carbon dioxide makes it unwise and unsafe to operate a tractor or any motor vehicle inside enclosed spaces suc
    13·1 answer
  • Think about the KIA factory shown in the video, what are two things that managers could do to reduce waste or increase efficienc
    6·1 answer
  • ¿Cuál es el objetivo de la participación del gobierno en la economía?
    6·1 answer
  • Air at 403 K and 1 atm enters a convergent nozzle at a velocity of 150
    9·1 answer
  • Compare and contrast mechanical properties of plastics, metals and ceramics.
    13·1 answer
  • All of the following affect friction EXCEPT
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!