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
How to study thermodynamics?​
expeople1 [14]

It is study of the relationships between heat, temprature, work and energy

7 0
3 years ago
Read 2 more answers
Koch traded Machine 1 for Machine 2 when the fair market value of both machines was $60,000. Koch originally purchased Machine 1
Mariana [72]

Answer:

Koch's adjusted basis in machine 2 after the exchange is $60,000

Explanation:

given data

fair market value = $60,000

originally purchased Machine 1 = $76,900

Machine 1 adjusted basis = $40,950

Machine 2 seller purchase = $64,050

Machine 2 adjusted basis = $55,950

solution

As he exchanged machine for another at $60,000

and this exchanged in fair market

so adjusted basis =  $50,000

Adjusted basis is the price of the item that affects the factors that are considered price. These factors usually include taxes, depreciation value, and other costs of acquiring and maintaining a given item. Adjusted basis is important so the right amount to sell

Adjusted basis increases when a person deducts expenses from factor taxes and operating statements

so Koch's adjusted basis in machine 2 after the exchange is $60,000

3 0
3 years ago
technician a says an out-of-round drum can cause a pulsating brake pedal. technician b says an out-of-round drum can cause the b
denis-greek [22]

According to the question of the pulsating brake pedal, both A and B are correct.

What causes brake pulsation?

Brake pulsation is mainly caused by warped rotors/brake discs. Excessive hard braking or quick stops, which can significantly overheat the discs, are the primary causes of deformed rotors. When the discs overheat, the composition of the metal disc material changes, resulting in imperfections in the metal's surface. Hotspots are noticeable irregularities. They appear as discoloured areas of the disc material, which are often bluish or blackish in appearance. The brake pedal is the pedal which you press with your foot to slow or stop a vehicle. When the driver presses the brake pedal, the system automatically delivers the appropriate pressure required to prevent colliding with the vehicle in front.

To learn more about brake pulsation
brainly.com/question/28779956

#SPj4

8 0
1 year ago
Which of the following are tips to help a speaker use their own voice?
djverab [1.8K]
D) All of the above.
4 0
3 years ago
Read 2 more answers
A viscous fluid flows in a 0.10-m-diameter pipe such that its velocity measured 0.012 m away from the pipe wall is 0.8 m/s. If t
maksim [4K]

Answer:

A) centerline velocity = 1.894 m/s

B) flow rate = 7.44 x 10^(-3) m³/s

Explanation:

A) The flow velocity intensity for the input radial coordinate "r" is given by;

U(r) = (Δp•D²/16μL) [1 - (2r/D)²]

Velocity at the centre of the tube can be expressed as;

V_c = (Δp•D²/16μL)

Thus,

U(r) = (V_c)[1 - (2r/D)²]

From question, diameter = 0.1m,thus radius (r) = 0.1/2 = 0.05m

But we are to find the velocity at the centre of the tube, thus;

We will use the radius across the horizontal distance which will be;

0.05 - 0.012 = 0.038m

Thus, let's put 0.038 for r in the velocity intensity equation and put other relevant values to get the velocity at the centre.

Thus;

U(r) = (V_c)[1 - (2r/D)²]

0.8 = (V_c)[1 - {(2 * 0.038)/0.1}²]

0.8 = (V_c)[1 - (0.76)²]

V_c = 0.8/0.4224 = 1.894 m/s

B) flow rate is given by;

ΔV = Average Velocity x Area

Now, average velocity = V_c/2

Thus, average velocity = 1.894/2 = 0.947 m/s

Area(A) = πr² = π x 0.05² = 0.007854 m²

So, flow rate = 0.947 x 0.007854 = 7.44 x 10^(-3) m³/s

4 0
3 years ago
Other questions:
  • What are the advantages of using 3D ink jet printing?
    10·1 answer
  • If link AB of the four-bar linkage has a constant counterclockwise angular velocity of 58 rad/s during an interval which include
    11·1 answer
  • What’s the purpose of current tracks
    6·1 answer
  • Define coordination number. How does this differ from atomic packing factor?
    7·1 answer
  • A positive slope on a position-time graph suggests
    15·1 answer
  • What is meant by the acronym ISO
    15·1 answer
  • Which type of engineers were the designers of the Great Pyramids of Egypt and the Great Wall of China?
    9·2 answers
  • 8. What is the purpose of the 300 Log?
    12·1 answer
  • The fracture strength of glass may be increased by etching away a thin surface layer. It is believed that the etching may alter
    14·1 answer
  • Which of the following describes all illustrations created by freehand?
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!