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
Find the differential and evaluate for the given x and dx: y=sin2xx,x=π,dx=0.25
Sedaia [141]

By applying the concepts of differential and derivative, the differential for y = (1/x) · sin 2x and evaluated at x = π and dx = 0.25 is equal to 1/2π.

<h3>How to determine the differential of a one-variable function</h3>

Differentials represent the <em>instantaneous</em> change of a variable. As the given function has only one variable, the differential can be found by using <em>ordinary</em> derivatives. It follows:

dy = y'(x) · dx     (1)

If we know that y = (1/x) · sin 2x, x = π and dx = 0.25, then the differential to be evaluated is:

y' = -\frac{1}{x^{2}}\cdot \sin 2x + \frac{2}{x}\cdot \cos 2x

y' = \frac{2\cdot x \cdot \cos 2x - \sin 2x}{x^{2}}

dy = \left(\frac{2\cdot x \cdot \cos 2x - \sin 2x}{x^{2}} \right)\cdot dx

dy = \left(\frac{2\pi \cdot \cos 2\pi -\sin 2\pi}{\pi^{2}} \right)\cdot (0.25)

dy = \frac{1}{2\pi}

By applying the concepts of differential and derivative, the differential for y = (1/x) · sin 2x and evaluated at x = π and dx = 0.25 is equal to 1/2π.

To learn more on differentials: brainly.com/question/24062595

#SPJ1

4 0
2 years ago
A heavy ball with a weight of 150 N is hung from the ceiling of a lecture hall on a 4.0-m-long rope. The ball is pulled to one s
shusha [124]

Answer:

The tension in the rope at the lowest point is 270 N

Explanation:

Given;

weight of the ball, W = 150 N

length of the rope, r = 4 m

velocity of the ball, v = 5.6 m/s

When the ball passes through the lowest point, the tension on the rope is the sum of weight of the ball and centripetal force.

T = W + F

Centripetal force, F = mv²/r

where;

m is the mass of the ball

m = W/g

m = 150 / 9.8 = 15.306 kg

Centripetal force, F = mv²/r

F = (15.306 x 5.6²)/4

F = 120 N

T = W + F

T = 150 + 120

T = 270 N

Therefore, the tension in the rope at the lowest point is 270 N

6 0
3 years ago
The Micro:bit is considered a what?
Scrat [10]

Sorry need points I'm new

3 0
3 years ago
Lydia is the CEO for a large pharmaceutical manufacturer. Her company is in the final stages of FDA
weqwewe [10]
OSHA inspections are generally unannounced. In fact, except in four exceptional circumstances when advance notice may be given.


It is a criminal offense for any person to give unauthorized advance notice of an OSHA inspection.
5 0
3 years ago
Given a square matrix [A], write a single line MATLAB command that will create a new matrix [Aug] that consists of the original
Liono4ka [1.6K]

Answer:

Consider A is square matrix of order 4 x 4 generated using magic function. Augmented matrix can be generated using:

Aug=[A eye(size(A))]

Above command is tested in MATLAB command window and is attached in figure below

8 0
3 years ago
Other questions:
  • A thin-walled tube with a diameter of 6 mm and length of 20 m is used to carry exhaust gas from a smoke stack to the laboratory
    7·1 answer
  • An equal-tangent sag vertical curve connects a 1% and 3% initial and final grades, respectively, and is designed for 70 mph. The
    12·1 answer
  • At the instant shown, slider block B is moving with a constant acceleration, and its speed is 150 mm/s. Knowing that after slide
    13·1 answer
  • "A computer architect redesigns the pipeline above to enable branch prediction. When PCSrc is asserted (branch taken) IF/ID is f
    10·1 answer
  • Practice Problem: True Stress and Strain A cylindrical specimen of a metal alloy 49.9 mm long and 9.72 mm in diameter is stresse
    13·1 answer
  • An R-134a refrigeration system is operating with an evaporator pressure of 200 kPa. The refrigerant is 10% in vapor phase at the
    15·1 answer
  • The coolant heat storage system:
    10·1 answer
  • You must yield the right-of-way to all of the following EXCEPT:
    8·1 answer
  • It is better to know or not to know?​
    6·2 answers
  • What is code in Arduino to turn led on and off
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!