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]
2 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]2 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
Fatigue failure occurs under the condition of (a) High elastic stress (b) High corrosivity (c) High stress fluctuations (d) High
Harlamova29_29 [7]

Answer:

Fatigue occurs under conditions of high elastic stress, high stress fluctuations and high rate of loading

Explanation:

 According to many definition of fatigue failure the fatigue occurs when in an especifyc point of the object there is involved many forces and tensions.

 That tensions needs to be big in magnitud, de variations of the efforts it has to be with a lot of amplitude and the loading in the object it has to be with a lot of number of cycles.

 If in the all of these three conditions are present the fatigue failure it would appear.

8 0
3 years ago
In digital communication technologies, what is an internal network also known as?
garri49 [273]
Intranet is a network that is internal and use internet technologies. It makes information of any company accessible to its employees and hence facilitates collaboration. Same methods can be used to get information, use resources, and update the data as that of the internet.
Hopefully this helped.
4 0
3 years ago
A gasoline engine takes in air at 290 K, 90 kPa and then compresses it. The combustion adds 1000 kJ/kg to the air after which th
Inessa [10]

Answer:

attached below

Explanation:

4 0
3 years ago
soccer is also called association football" A soccer ball is a sphere, with circumference of 70 centimeters. in developing a new
timama [110]

Answer: Weight on Mars = 0.02593N

Explanation:

Given; Circumference C of Sphere = 70cm = 0.7m,

Specific Gravity S. G. of material = 1.21,

acceleration due to gravity in the Mars gm = 3.7m/s^2

We know that Weight W = mass m × acceleration due to gravity.

Let the Weight in on the Mars be Wm.

Wm = m × gm

Since we are given gm, we need to calculate for m. (Note that mass m is the same everywhere)

But mass = specific gravity × volume

Since we know the specific gravity, let's go ahead to calculate for the volume of the ball.

We know that Volume of a Sphere V = (4/3)πr^3

To get r, we know that C = 2πr

Therefore, r = C/(2π) = 0.7/(2π) = (7/10)/2π = 7/20π (in meters)

V = (4/3)*π×(7/20π)^3 = 343/6000π^2 (in meter^3)

m = 343/6000π^2 × 1.21 = 7.01×10^(-3)kg

Wm = 7.01×10^(-3) × 3.7 = 0.02593N

8 0
2 years ago
If a 2 1/8 inch diameter medium carbon steel rod is to be turned between centers to a 2 inch diameter using high speed cutting b
Crank

Answer:

I think 1 31/32

8 0
3 years ago
Other questions:
  • Signal generator‘s internal impedance is purely resistive and has an open-circuit voltage of 3.5 V. When the generator is loaded
    11·1 answer
  • What is the one change that golden expects to see in public transportation?
    12·1 answer
  • Passband to baseband conversion: Consider the following passband signal,
    14·1 answer
  • A town is designing a rectangular, 4m deep settling tank for treating surface water intake. The tank will have a flow velocity o
    14·1 answer
  • You doubled the voltage frequency in an RL series AC circuit, the inductive resistance would?
    8·2 answers
  • A 100-mm-diameter cast Iron shaft is acted upon by a 10 kN.m bending moment, a 8 kN.m torque, and a 150 kN axial force simultane
    9·1 answer
  • Why charles babbage is known as father of computer explain <br>​
    12·1 answer
  • 8.28 Water is the working fluid in an ideal Rankine cycle with superheat and reheat. Steam enters the first-stage turbine at 140
    13·1 answer
  • (Architecture) Sarah is an environmental activist. She frequently conducts various programs and activities in her community to p
    15·1 answer
  • What is the first step of the engineering design process?
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!