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
If a heat engine has an efficiency of 30% and its power output is 600 W, what is the rate of heat input from the combustion phas
jarptica [38.1K]

Answer:

The heat input from the combustion phase is 2000 watts.

Explanation:

The energy efficiency of the heat engine (\eta), no unit, is defined by this formula:

\eta = \frac{\dot W}{\dot Q} (1)

Where:

\dot Q - Heat input, in watts.

\dot W - Power output, in watts.

If we know that \dot W = 600\,W and \eta = 0.3, then the heat input from the combustion phase is:

\eta = \frac{\dot W}{\dot Q}

\dot Q = \frac{\dot W}{\eta}

\dot Q = \frac{600\,W}{0.3}

\dot Q = 2000\,W

The heat input from the combustion phase is 2000 watts.

8 0
3 years ago
The Role of Fuel Cells in Renewable Energy Solutions
gogolik [260]

Answer:

chemical energy directly

4 0
3 years ago
How do I get my son to do his work?
valentinak56 [21]

Answer:

Explanation:

Reward him if he does his homework/work

If he doesnt do his homework, take things that he loves off of him. and tell him if he does his homework/work he will get them things back

8 0
3 years ago
Bind hole, 38 diameter, .50 deep
agasfer [191]

Answer:

59.69021

Explanation:

38/.5 x 3.14159

4 0
2 years ago
A 20-mm-diameter steel bar is to be used as a torsion spring. If the torsional stress in the bar is not to exceed 110 MPa when o
ch4aika [34]

Answer:

1.887 m

Explanation:

(15 *pi)/180

= 0.2618 rad

Polar moment

= Pi*d⁴/32

= (22/7*20⁴)/32

= 15707.96

Torque on shaft

= ((22/7)*20³*110)/16

= 172857.14

= 172.8nm

Shear modulus

G = 79.3

L = Gjθ/T

= 79.3x10⁹x(1.571*10^-8)x0.2618/172.8

= 1.887 m

The length of the bar is therefore 1.887 meters

5 0
3 years ago
Other questions:
  • Some cars have an FCW, which stands for
    13·1 answer
  • Write a modular program that finds the equation, area, and circumference of a circle, given the coordinates of the center of the
    11·1 answer
  • Are spheroidized steels considered as composite? If so, what is the dispersed phase a)- No b)- Yes, Chromium Carbides c)- Yes, I
    12·1 answer
  • The two boxcars A and B have a weight of 20000lb and 30000lb respectively. If they coast freely down the incline when the brakes
    11·1 answer
  • Question 9.1 from the textbook. Consider the following workload: Process Burst Time Priority Arrival Time P1 50 4 0 P2 20 1 20 P
    7·1 answer
  • 3.
    7·1 answer
  • Question in image. Question from OSHA.
    11·2 answers
  • ILL GIVE BRAINLIEST!!!
    11·1 answer
  • Help please!!!!!
    12·1 answer
  • What is the purpose of having a ventilation system on board a motorized vessel?.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!