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
The Canadair CL-215T amphibious aircraft is specially designed to fight fires. It is the only production aircraft that can scoop
ioda

Answer:

Determine the added thrust required during water scooping, as a function of aircraft speed, for a reasonable range of speeds.= 132.26∪

Explanation:

check attached files for explanation

6 0
3 years ago
Which of following are coding languages used in controlling a robot? *
Bess [88]

Answer:

C/C++

Explanation:

C/C++

7 0
3 years ago
Consider a space shuttle weighing 100 kN. It is travelling at 310 m/s for 30 minutes. At the same time, it descends 2200 m. Cons
mixas84 [53]

Answer:

work done = 48.88 × 10^{9} J

Explanation:

given data

mass = 100 kN

velocity =  310 m/s

time = 30 min = 1800 s

drag force = 12 kN

descends = 2200 m

to find out

work done by the shuttle engine

solution

we know that work done here is

work done = accelerating work - drag work - descending work

put here all value

work done = ( mass ×velocity ×time  - force ×velocity ×time  - mass ×descends )  10³ J

work done = ( 100 × 310 × 1800  - 12×310 ×1800  - 100 × 2200 )  10³ J

work done = 48.88 × 10^{9} J

6 0
3 years ago
Engineers in Russia invented a new way to create colorful art with a __________.
Setler [38]

The Engineers in Russia invented a new way to create colorful art with constructivist art.

<h3>What is constructivist art?</h3>

Constructivist art was aimed to reflect modern industrial society and urban space in art. It uses industrial production forms and modest materials for its art production.

The constructivists proposed to replace traditional art's with a focus on construction as Engineers rather than a painter.

Therefore, the Engineers in Russia invented a new way to create colorful art with constructivist art using construction.

Learn more on constructivist here,

brainly.com/question/14054863

3 0
3 years ago
What's the difference between accuracy and percision in measuring and gaging?
lidiya [134]

Answer:

The term Accuracy means that how close our result to the original result.

Suppose we do any experiment in laboratory and we calculate mass = 7 kg but answer is mass = 15 kg then our answer is not accurate.

And the term Precision means how likely we get result like this.

Suppose we do any experiment in laboratory and we calculate mass five times and each time we get mass = 7 kg then our answer is precised but not accurate.

4 0
4 years ago
Other questions:
  • LUNES MARTES MIÉRCOLES JUEVES VIERNES SÁBADO DOMINGO
    10·1 answer
  • Please Help It's really Important
    12·1 answer
  • Who can work on a fixed ladder that extends more than 24 feet?
    11·1 answer
  • List one advantage and one disadvantage of the use of the commutator?
    8·1 answer
  • Your coworker was impressed with the efficiency you showed in the previous problem and would like to apply your methods to a pro
    5·1 answer
  • Ok I need a new laptop but I'm not sure which one. The Surface laptop 3 is better in many fields like the camera, speaker, audio
    14·1 answer
  • What is the difference between the pressure head at the end of a 150m long pipe of diameter 1m coming from the bottom of a reser
    7·1 answer
  • ______________ help protect the lower legs and feet from heat hazards like molten metal and welding sparks. A) Safety shoesB) Le
    7·1 answer
  • A family member who hasn’t worked with computers before has decided to change jobs. You’ve been asked to explain some of the bas
    6·2 answers
  • Help please!!!!!
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!