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
A bridge to be fabricated of steel girders is designed to be 500 m long and 12 m wide at ambient temperature (assumed 20°C). Exp
Volgvan

Answer:

a) 22.5number

b) 22.22 m length

Explanation:

Given data:

Bridge length = 500 m

width of bridge = 12 m

Maximum temperature = 40 degree C

minimum temperature  = - 35 degree C

Maximum expansion can be determined as

\Delta L = L \alpha (T_{max} - T_{min})

where , \alpha is expansion coefficient = 12\times 10^{-6} degree C

SO, \Delta L = 500\times 12\times 10^{-6}\times ( 40 - (-35))

\Delta L = 0.45 m = 450 mm

number of minimum expansion joints is calculated as

n = \frac{450}{20} = 22.5

b) length of each bridge

Length = \frac{500}{22.5} = 22.22 m

8 0
3 years ago
What's the monomer? Show the structure.
ivolga24 [154]

In order to understand a monomer let´s first see the structure of a polymer. As an example, in the first figure polyethylene (or polyethene) is shown. This polymer, like every other one, is composed of many repeated subunits, these subunits are called monomer. In the second figure, polyethylene's monomer is shown.  

7 0
4 years ago
Which one is suitable for industries petrol engine or diesel engine and why?
klio [65]

Answer:

diesel engine

Explanation:

because diesel is stronger than petrol

3 0
3 years ago
Read 2 more answers
Indicates the design of the building and<br> adjoining areas
Lelu [443]

Answer:

Architectural Plan

Explanation:

4 0
3 years ago
How do you determine when a truss will fail?<br> (Yield Stress)
Marat540 [252]

Answer:

If a truss buckles or overturns, it is usually because of the failure of an adjacent truss or its bracing. A steel truss in a fire may buckle and overturn because of expansion or weakening from the heat. Most truss failures are the result of broken connections. Photo 1 shows a set of parallel-chord wood trusses supporting a plywood floor deck.

Explanation:

7 0
3 years ago
Other questions:
  • It is not a practical proposition to take direct measurements in nanoscale, but we can estimate variations in position and momen
    15·1 answer
  • Help me! Phone Phoebe on 07375410044.
    7·2 answers
  • In unguided medium (free space), the electromagnetic (EM) signal wave spreads as it leaves the transmit antenna. Since the power
    10·1 answer
  • Block A is released from rest and slides down the frictionless ramp to the loop. The maximum height h of the loop is the same as
    6·1 answer
  • At a certain location, wind is blowing steadily at 10 m/s. Determine the mechanical energy of air per unit mass and the power ge
    5·1 answer
  • A force of 16,000 will cause a 1 1 bar of magnesium to stretch from 10 to 10.036 . Calculate the modulus of elasticity in . (Ent
    6·1 answer
  • Which of the following statements about pitot-static systems is FALSE? a). A pitot probe measures the Total Pressure of the free
    10·1 answer
  • What competitive strategy was used by Regal Marine?
    5·1 answer
  • Which option identifies the step of the implementation phase represented in the following scenario?
    9·2 answers
  • The Imager for Mars Pathfinder (IMP) is an imaging system. It has two camera channels. Each channel has color capability. This i
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!