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]
3 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]3 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
In order to break even, your minimum selling price must be __________ your variable costs.
Gelneren [198K]
Your minimum selling price must be HIGHER THAN your variable costs
7 0
3 years ago
The mean of 10 numbers is 9, then the sum (total) of these numbers will be​
qwelly [4]

Answer:

90

Explanation:

mean is basically taking the sum of all numbers and then dividing the sum with the number of all given numbers..

here, the mean is 9, total numbers are 10.. so the sum will be 9 multiplied by 10, that is 90.

5 0
2 years ago
Read 2 more answers
An energy system can be approximated to simply show the interactions with its environment including cold air in and warm air out
Elenna [48]

Answer: The energy system related to your question is missing attached below is the energy system.

answer:

a) Work done = Net heat transfer

  Q1 - Q2 + Q + W = 0

b)  rate of work input ( W ) = 6.88 kW

Explanation:

Assuming CPair = 1.005 KJ/Kg/K

<u>Write the First law balance around the system and rate of work input to the system</u>

First law balance ( thermodynamics ) :

Work done = Net heat transfer

Q1 - Q2 + Q + W = 0 ---- ( 1 )

rate of work input into the system

W = Q2 - Q1 - Q -------- ( 2 )

where : Q2 = mCp T  = 1.65 * 1.005 * 293 = 485.86 Kw

             Q2 = mCp T = 1.65 * 1.005 * 308 = 510.74 Kw

              Q = 18 Kw

Insert values into equation 2 above

W = 6.88 Kw

5 0
2 years ago
What is the volume of the rectangular prism shown.
Likurg_2 [28]
It would be 72cm bc u need to add up all the line in the back to
7 0
3 years ago
Fuel filters are being replaced on a HPCR diesel
saw5 [17]

Answer:) The correct answer is B. at the end of the fuel rail.

2) The one who is correct is the Technician A.

Explanation:

7 0
3 years ago
Other questions:
  • 1. A fixed-geometry supersonic inlet starts at a Mach number of 3. After starting, the cruise Mach number is 2, and the operatin
    13·1 answer
  • If you are in a tornado situation, which of the following actions would put you in danger?
    11·1 answer
  • A car is stopped at an entrance ramp to a freeway; its driver is preparing to merge. At a certain moment while stopped, this dri
    10·1 answer
  • Which is an alloy made up of iron and carbon and has high compressive and tensile strength?
    6·1 answer
  • Summarize the difference in hydraulic and pneumatic systems.
    12·1 answer
  • The diameter of a cylindrical water tank is Do and its height is H. The tank is filled with water, which is open to the atmosphe
    11·1 answer
  • ANSWER ASAP<br> What is the point system?<br> this is for driving
    8·1 answer
  • Drag each label to the correct location on the table. Match to identify permanent and temporary structures.
    15·1 answer
  • A series of end-milling cuts is currently used to produce an aluminum part that is an aircraft component. The purpose of the mac
    14·1 answer
  • Technician A says that fuel filler caps with pressure and vacuum vents are used with EVAP system fuel tanks. Technician B says t
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!