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
The volume of microbial culture is observed to increase according to the formula
saw5 [17]

The expression of V(m³)=e^(t(s)) to make V in in³ and t in minutes is;

V(in³) = (¹/₆₁₀₂₄)ae^{\frac{1}{60}bt(h)

We are given that;

Volume of microbial culture is observed to increase according to the formula;

V = e^(t)

where;

t is in seconds

V is in m³

We want to now express V in in³ and t in minutes.

Now, from conversions;

1 m³ = 61024 in³

Also; 1 second = 1/60 minutes

according to formula for exponential decay, we know that;

V = ae^(bt)

Thus, we have;

61024V = ae^(¹/₆₀b(t(h))

V(in³) = (¹/₆₁₀₂₄)ae^{\frac{1}{60}bt(h)

Read more about subject of formula at; brainly.com/question/790938

3 0
2 years ago
A square loop of wire surrounds a solenoid. The side of the square is 0.1 m, while the radius of the solenoid is 0.025 m. The sq
Semmy [17]

Answer:

I=9.6×e^{-8}  A

Explanation:

The magnetic field inside the solenoid.

B=I*500*muy0/0.3=2.1×e ^-3×I.

so the total flux go through the square loop.

B×π×r^2=I×2.1×e^-3π×0.025^2

=4.11×e^-6×I

we have that

(flux)'= -U

so differentiating flux we get

so the inducted emf in the loop.

U=4.11×e^{-6}×dI/dt=4.11×e^-6×0.7=2.9×e^-6 (V)

so, I=2.9×e^{-6}÷30

I=9.6×e^{-8}  A

6 0
3 years ago
Which of the following can minimize engine effort and
son4ous [18]
It’s D. This is because having oil changes often, makes the care for your car better. I hope this helps.
7 0
2 years ago
Read 2 more answers
A) For Well A, provide a cross-section sketch that shows (i) ground elevation, (ii) casing height, (iii) depth to
Ad libitum [116K]
Don’t go on that file will give a virus! Sorry just looking out and I don’t know how to comment!
7 0
2 years ago
Many radios can be operated either by plugging them into the wall or by using batteries. How can a radio use either source of cu
ch4aika [34]

Answer:

The electric current from the batteries installed in a radio supplies direct current (DC) electricity to the radio components directly as an alternative source to the Alternating Current (AC) converted to DC by the power unit located at the radio end of the cable plugged into the wall outlet.

Explanation:

Part of the power unit in a radio includes an AC to DC converter, which is an electrical circuit that is able to convert the alternating current power input from the wall outlet into a direct current output to the radio with which the radio can work

The alternative source of electric current from the batteries installed in a radio bypasses the AC to DC converter and supplies power directly to the radio so it can also work.

5 0
3 years ago
Other questions:
  • A rod is 2m long at temperature of 10oC. Find the expansion of the rod, when the temperature is raised to 80oC. If this expansio
    7·1 answer
  • Based in bonding theory, explain why heat capacity increases when you consider metals, ceramics and polymers.
    14·1 answer
  • Nc3
    12·1 answer
  • Thermosetting polymers are polymers that becomes soft and pliable when heated. ( True , False )
    8·2 answers
  • What are the two safety precautions taken before driving a car​
    12·1 answer
  • As shown, a load of mass 10 kg is situated on a piston of diameter D1 = 140 mm. The piston rides on a reservoir of oil of depth
    9·1 answer
  • Air enters the compressor of an ideal Brayton refrigeration cycle at 100 kPa, 270 K. The compressor pressure ratio is 3, and the
    13·1 answer
  • If the bolt head and the supporting bracket are made of the same material having a failure shear stress of 'Tra;i = 120 MPa, det
    9·1 answer
  • What is the value of the energy (in Joules) stored by the mobile phone battery (capacity of 1.8 Ah), if it is rated at 3.7 V
    15·2 answers
  • In order to live and grow, bacteria need moisture, food, the right temperature, and ______? Fill in the blank
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!