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
What factors affect the temperature when vapor condenses
kati45 [8]

Answer:

Condensation

Explanation:

8 0
3 years ago
Column arrays: Transpose a row array Construct a row array countValues with elements 1 to endValue, using the double colon opera
White raven [17]

Answer:

Matlab code with step by step explanation and output results are given below

Explanation:

We have to construct a Matlab function that creates a row vector "countValues" with elements 1 to endValue. That means it starts from 1 and ends at the value provided by the user (endValue).  

function countValues = CreateArray(endValue)

% Here we construct a row vector countValues from 1:endValue

     countValues = 1:endValue;

% then we transpose this row vector into column vector

     countValues = countValues';

 end

Output:

Calling this function with the endValue=11 returns following output

CreateArray(11)

ans =

    1

    2

    3

    4

    5

    6

    7

    8

    9

   10

   11

Hence the function works correctly. It creates a row vector then transposes it and makes it a column vector.

7 0
3 years ago
Pie charts should have no more than eight segments. True or False?
Pepsi [2]

Answer:

Explanation:

Pie charts generally should have no more than eight segments.

6 0
3 years ago
Read 2 more answers
Carbon dioxide at 20°C flows in a pipe at a rate of 0.005 kg/s. Determine the minimum diameter required if the flow is laminar (
Vesna [10]

Answer:

the required diameter is 0.344 m

Explanation:

given data:

flow is laminar

flow of carbon dioxide Q = 0.005 Kg/s

for  flow to be laminar,  Reynold's number must be less than 2300 for pipe flow and it is given as

\frac{\rho VD}{\mu }

arrange above equation for diameter

\frac{\rho Q D}{\mu A }<2300

dynamic density of carbon dioxide = 1.47×10^{-5} Pa sec

density of carbon dioxide is 1.83 kg/m³

\frac{1.83\times 0.0056\times D}{1.47\times 10^{-5}\times \frac{\pi}{4} \times D^{2} }

\frac{1.83\times 0.0056}{1.47\times 10^{-5}\times \frac{\pi}{4} \times 2300}= D

D = 0.344 m

4 0
3 years ago
Does anybody like beyblades and want to help make a custom beyblade comic, anime, and even CUSTOM BEYS. (BRANLIEST + 35 points f
Radda [10]

Answer:Does anybody like beyblades and want to help make a custom beyblade comic, anime, and even CUSTOM BEYS. (BRANLIEST + 35 points for answer)

Explanation:

Sure! I love beyblades! and I do make comics! and even see the anime beyblades ! :)

7 0
3 years ago
Read 2 more answers
Other questions:
  • A signalized intersection approach has an upgrade of 4%. The total width of the cross street at this intersection is 60 feet. Th
    15·1 answer
  • The current entering the positive terminal of a device is i(t)= 6e^-2t mA and the voltage across the device is v(t)= 10di/dtV.
    6·1 answer
  • Iven &amp; Find: Compare the average heat transfer coefficients for three different fluids. In all cases the length of the plate
    10·1 answer
  • The given family of functions is the general solution of the differential equation on the indicated interval.Find a member of th
    11·1 answer
  • Using the data given below, calculate the drop in the temperature of molten aluminum as it flows in a 15 cm long round channel o
    9·1 answer
  • Position from polar velocity A particle P starts at time t 0s at the position
    12·1 answer
  • 1. Round off 2553 N to three significant figures.
    15·1 answer
  • A heat engine that receives heat from a furnace at 1200°C and rejects waste heat to a river at 20°C has a thermal efficiency of
    14·1 answer
  • How much thermal energy is needed to raise the temperature of 15kg gold from 45⁰ C up to 80⁰ C​
    10·1 answer
  • Explain jack plane. please dont copy from go ogle<br>​
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!