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 large retail organization previously divided work among its four employee benefits staff into distinct specializations. One pe
denpristay [2]

Answer:

This job restructuring is an example of job enrichment.

Explanation:

Job enrichment is a motivational tool used by organizations to give employees greater satisfaction in their jobs, by giving them additional responsibilities previously reserved for higher-ranking positions.

8 0
3 years ago
Which of the following is lost when the computer is turned off? ILL MARK BRAINLEST
Pavel [41]

Answer:

cloud storage is the answer

6 0
3 years ago
Read 2 more answers
A sign structure on the NJ Turnpike is to be designed to resist a wind force that produces a moment of 25 k-ft in one direction.
Jlenok [28]

Solution :

Finding the cohesion of the soil(c) using the relation:

$c = \frac{q_u}{2}$

Here, $q_u$ is the unconfined compression strength of the soil;

$c = \frac{800}{2}$

   = 400 psf

∴ The cohesion value is greater than 0

So the use of the angle of internal friction is 0

Referring to the table relation between bearing capacity factors and angle of internal friction.

For the angle of inter friction $0^\circ$

    $N_c = 5.14$

   $N_q = 1.0$

   $N_r = 0$

Therefore,

$q_{ult} = (400 \times 5.14 )+(110 \times 3 \times 1.0)+(0.5 \times 100 \times 13 \times 0)$

     =  2386 psf

∴ Allowable bearing capacity $q_{a} = \frac{Q_{allow}}{A}$

                                                     $=\frac{30}{B^2}$

∴ $q_a = \frac{q_{ult}}{F.O.S}$

  $\frac{30}{B^2} = \frac{2386}{3}$

∴ B = 0.2 ft

Therefore, the dimension of the square footing is 0.2 ft x 0.2 ft

                                                                                 $=0.04 \ ft^2$

7 0
3 years ago
Cast iron has about how much carbon content?
Aliun [14]

Answer:

c

Explanation:

7 0
3 years ago
Which is an example of a subsystem and system relationship?
Zanzabum

The example of a subsystem and system relationship is option

A) mechanical toggle, Xbox controller

Explanation:

  • Controls and Controllers are known as the mechanical, electro-mechanical, or electronic devices which are used to  input signals to change the conditions or values which are in processes or access to buildings, operators, gated areas, etc.
  • When you press and hold the given Shift button, these buttons which are chosen becomes an alternate inputs.
  • Normally, there are three controllers(PID) which are used in any of the process industries inorder to maintain and control the required setpoint.
  • an example of a subsystem and system relationship is a mechanical toggle, Xbox controller
  • Controllers improve the steadiness and state of accuracy by decreasing the steady state error. When the steady state accuracy gets better, the stability also improves.
  • Controllers are also used to help in reducing the unwanted offsets which are produced by the system.

6 0
3 years ago
Other questions:
  • Which of the following is an acronym for a recently introduced type of vehicle that has a high fuel economy rating?A.SUVB.AQIC.H
    6·1 answer
  • If i eat myself will I get twice as big or disappear completely?
    7·1 answer
  • Presence of beach marks on a fracture surface indicates a fatigue failure mode. a)-True b)- False
    5·1 answer
  • 6. What living area room must be adjacent to the kitchen?
    14·1 answer
  • A developer is having a single-lane raceway constructed with a 100 mph design speed. A curveon the raceway has a radius of 1000-
    13·2 answers
  • For methyl chloride at 100°C the second and third virial coefficients are: B = −242.5 cm 3 ·mol −1 C = 25,200 cm 6 ·mol −2 Calcu
    7·1 answer
  • What is clearance? What is backlash? What is interference? Explain briefly.
    6·1 answer
  • How does Accenture generate value for clients through Agile and DevOps?
    15·2 answers
  • THE COMPUND INTEREST ON RS 30,000AT 7% PER ANNUM IS RS 4347 THE PERIOD IN YEARS
    7·2 answers
  • Consider a mixing tank with a volume of 4 m3. Glycerinflows into a mixing tank through pipe A with an average velocity of 6 m/s,
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!