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
docker41 [41]
4 years ago
9

1 import java.util.Scanner; 3 public class EqualityAndRelational { 4 public static void main (String args) args) { int userBonus

; int userPoints; userPoints-0; Scanner scnrnew Scanner(System.in); 7 10 userBonus = scnr.nextInt(); // Program will be tested with values : 15, 20, 25, 30, 35. 12 13 14 15 16 17 18 19 * Your solution goes here userPoints-10 else userPoints = 0;
Engineering
1 answer:
Anastaziya [24]4 years ago
7 0

Missing Part of the Question

Complete the expression so that userPoints is assigned with 0 if userBonus is greater than 20 (second branch). Otherwise, userPoints is assigned with 10 (first branch

import java.util.Scanner;

public class EqualityAndRelational {

public static void main (String args) args) {

int userBonus; int userPoints;

userPoints=0;

Scanner scnr = new Scanner(System.in);

userBonus = scnr.nextInt();

// Program will be tested with values : 15, 20, 25, 30, 35. 12 13 14 15 16 17 18 19

( Your solution goes here)

{

userPoints= 10 ;

}

else {

userPoints = 0;

}

}

}

Answer;

Replace

( Your solution goes here)

With

if(userBonus>20).

The full program becomes

import java.util.Scanner;

public class EqualityAndRelational {

public static void main (String args) args) {

int userBonus; int userPoints;

userPoints=0;

Scanner scnr = new Scanner(System.in);

userBonus = scnr.nextInt();

// Program will be tested with values : 15, 20, 25, 30, 35. 12 13 14 15 16 17 18 19

if(userBonus>20)

{

userPoints= 10 ;

}

else {

userPoints = 0;

}

}

}

You might be interested in
"Given a nodal delay of 84.1ms when there is no traffic on the network (i.e. usage = 0%), what is the effective delay when netwo
shtirl [24]

Answer:

Explanation:

effective delay = delay when no traffic x \frac{100}{100- network\r usage}

effective delay = 84.1 \times \frac{100}{100-39.3}=138.55024711697ms

4 0
3 years ago
Consider a continuous-flow, indraft supersonic wind tunnel, which uses a vacuum pump to draw atmospheric air from outside of the
BigorU [14]
I believe it’s B but I’m not sure
3 0
3 years ago
Your company is planning to build a pipeline to transport gasoline from the refinery to a field of storage tanks. The parameters
AleksandrR [38]

Answer:

The model system will need water flowing at a velocity of 2.07 meters per second to guarantee kinematic similarity in the form of equal Reynolds numbers.

Explanation:

The Reynolds number (Re_{D}) is a dimensionless criterion use for flow regime of fluids, which is defined as:

Re_{D} = \frac{\rho \cdot v\cdot D}{\mu} (Eq. 1)

Where:

\rho - Density, measured in kilograms per cubic meter.

\mu - Dynamic viscosity, measured in kilograms per meter-second.

v - Average flow velocity, measured in meters per second.

D - Pipe diameter, measured in meters.

We need to find the equivalent velocity of water used in the prototype system. In this case, we assume that Re_{D,gas} = Re_{D,w}. That is:

\frac{\rho_{w}\cdot v_{w}\cdot D_{w}}{\mu_{w}} = \frac{\rho_{gas}\cdot v_{gas}\cdot D_{gas}}{\mu_{gas}} (Eq. 2)

Where subindex w is used for water and gas for gasoline.

If we know that \rho_{gas} = 690\,\frac{kg}{m^{2}}, \mu_{gas} = 0.006\,\frac{kg}{m\cdot s}, v_{gas} = 0.5\,\frac{m}{s}, D_{gas} = 1\,m, \rho_{w} = 1000\,\frac{kg}{m^{3}}, \mu_{w} = 0.0018\,\frac{kg}{m\cdot s} and D_{w} = 0.05\,m, then we get the following formula:

57500 = 27777.778\cdot v_{w}

The fluid velocity for the prototype system is:

v_{w} = 2.07\,\frac{m}{y}

The model system will need water flowing at a velocity of 2.07 meters per second to guarantee kinematic similarity in the form of equal Reynolds numbers.

3 0
3 years ago
What is the difference between a discrete and continuous system?
Serjik [45]

Answer:Discrete system are those system which change the state at the discrete point of time and continuous system are those which have state change at continuous period of time.

Explanation:

  • The major difference between discrete and continuous system is that, discrete system has state change over a discontinuous time period whereas the change of state in continuous system is over a continuous time period .
  • Variations can be found in the discrete system signal but  in continuous system variation cannot be found input and output signal.
  • Example:-

       Discrete system:-employees reporting at office at different time like

       9:10am, 9:15am etc              

       <u> Continuous system</u>:-the water flow over a dam in particular quantity                    

7 0
3 years ago
Which field in a Transmission Control Protocol (TCP) header is chosen from ephemeral ports?
zalisa [80]

Answer:

<u>Source Port</u>

Explanation:

When a connection is establish for an application, it assigns a port that is not in use as the source port. Such ports are known as ephemera ports, which are not related to specific protocol and are only allocated for the period of the connection. All data received on this port (until the connection is disconnected) is sent on to that application.

8 0
3 years ago
Other questions:
  • Air at 400 kPa, 980 K enters a turbine operating at steady state and exits at 100 kPa, 670 K. Heat transfer from the turbine occ
    13·1 answer
  • Sedimentary rock forms at or near the
    11·2 answers
  • Consider a 2.4-kW hooded electric open burner in an area where the unit costs of electricity and natural gas are $0.10/kWh and $
    9·1 answer
  • Suggest four reasons a company might state to justify manufacturing a product
    6·1 answer
  • Air with a mass flow rate of 2.3 kg/s enters a horizontal nozzle operating at steady state at 450 K, 350 kPa, and velocity of 3
    5·1 answer
  • 9 Select the correct answer. Conservation agents object to legal hunting. OA True B. False​
    12·2 answers
  • When framing a wall, temporary bracing is
    15·1 answer
  • 1. Safety goggles, glasses, or face shields must be
    6·2 answers
  • Compare and contrast an electric vehicle with one powered by a fuel cell.
    15·1 answer
  • How much current is drawn by a flashlight that has a resistance of 10 ohms if a voltage of 3 volts is impressed across it?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!