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
Energy transfer in mechanical systems: During steady-state operation, a mechanical gearbox receives 70 KW of input power through
Degger [83]

Answer:

Heat transfer rate(Q)= 1.197kW

Power output(W)=68.803kW

3 0
3 years ago
What is the worlds fastest car
Aneli [31]

Answer:

Thrust SSC

Explanation:

You can look it up

3 0
3 years ago
Read 2 more answers
Which is the main material in a solar cell?
quester [9]
Crystalline silicon
hope this helps!! <3
5 0
3 years ago
The modulus of elasticity for a ceramic material having 6.0 vol% porosity is 303 GPa. (a) Calculate the modulus of elasticity (i
Phantasy [73]

Answer:

modulus of elasticity for the nonporous material is 340.74 GPa

Explanation:

given data

porosity = 303 GPa

modulus of elasticity = 6.0

solution

we get here  modulus of elasticity for the nonporous material Eo that is

E = Eo (1 - 1.9P + 0.9P²)    ...............1

put here value and we get Eo

303 = Eo ( 1 - 1.9(0.06) + 0.9(0.06)² )  

solve it we get

Eo = 340.74 GPa

8 0
3 years ago
I need help!!!!!!!!!
katovenus [111]

Answer:

buy a new one

Explanation:

go on newegg and you will most likely find one there

8 0
3 years ago
Other questions:
  • What can your employer do to protect you from overhead power lines?
    8·1 answer
  • You read a research study that concludes that the higher a student's self-esteem, the better he performs in school. This sort of
    5·1 answer
  • If the bar assembly is made of a material having a yield stress of σY = 45 ksi , determine the minimum required dimensions h1 an
    7·1 answer
  • The flowchart below shows the design steps required to build a working model.
    6·1 answer
  • Am i eating ramon nooddles rn
    10·2 answers
  • How much heat (Btu) is prod uced by a 150-W light bulb that is on for 20-hours?
    14·1 answer
  • A flat-plate solar collector is 2 m long and 1 m wide and is inclined 60o to the horizontal. The cover plate is separated from t
    13·1 answer
  • I need solution for this question ​
    10·1 answer
  • 1. True/False The Pressure Relief valve maintains the minimum pressure in the hydraulic circuit​
    13·1 answer
  • 1. You are asked to write a report about one of the structures that Transportation Engineers
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!