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
Karolina [17]
3 years ago
6

Complete the expression so that userPoints is assigned with 0 if userStreak is greater than 25 (second branch). Otherwise, userP

oints 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 scnrnew Scanner(System.in);
userBonus = scnr.nextInt();

if (/* Your Solution goes here*/) {
userPoints = 10;
}
else {
userPoints = 0;
}

Computers and Technology
2 answers:
velikii [3]3 years ago
6 0

Answer:

if (userStreak <= 25) {

Explanation:

I modified the answer to fit with your question, but here's a snapshot of the code.

Nata [24]3 years ago
3 0

Answer:

Explanation:

Modified code:

import java.util.Scanner;

public class EqualityAndRelational {

   public static void main (String args) args) {

       int userStreak;

       int userPoints;

       userPoints = 0;

       Scanner scnrnew Scanner(System.in);

       userStreak = scnr.nextInt();

       if (userStreak <= 25) {

           userPoints = 10;

       } else {

           userPoints = 0;

       }

   }

}

You might be interested in
Activity: Identify what hazards are addressed by the following health and safety procedures.
lisov135 [29]

Answer:

1. other hazard

2.mechanical hazard

3. ergonomics hazard

4.chemical hazard

5.hazard

4 0
3 years ago
what are the text or graphics that are lighter than the main text located in a document's background called? themes borders wate
Mariulka [41]
The text or graphics that are lighter than the main text located in a document's background are watermarks inserts
4 0
3 years ago
In what scenario should dhcp servers also be active dhcp clients?
mrs_skeptik [129]
DHCP stands for Dynamic Host Configuration Protocol. It is protocol responsible for c<span>onfiguring the IP address and other TCP/IP settings on network computers. </span>There is no scenario in which DHCP servers also be active DHCP clients. They should never be both a DHCP server and DHCP client. The two sides (client and server) should be always separated.
4 0
3 years ago
Calculates the current that feeds a washer toy having a 10 ohm resistor and a battery operated with a potential difference of 30
andreev551 [17]

Explanation:

Using Ohm's Law and a bit of substitution, we can solve for current.

5 0
3 years ago
What are the two features of EDIAC ?​
Sergio [31]

Answer:

By the numbers: “The ENIAC contained 17,468 vacuum tubes, along with 70,000 resistors, 10,000 capacitors, 1,500 relays, 6,000 manual switches and 5 million soldered joints. It covered 1,800 square feet (167 square meters) of floor space, weighed 30 tons, consumed 160 kilowatts of electrical power.” More info

3 0
3 years ago
Other questions:
  • Create a single line comment that says ""Print results to screen""
    13·1 answer
  • Why is internet safety important
    14·2 answers
  • Which kind of file would be hurt most by lossy compression algorithm
    8·2 answers
  • Why is investing in a mutual fund less risky than investing in a particular company's stock? A. Mutual funds only invest in blue
    14·2 answers
  • Write a program that declares constants to represent the number of inches, feet, and yards in a mile. Name the constants INCHES_
    6·1 answer
  • A small amount of memory stored on the central processor for easy access is called
    6·2 answers
  • 1. Empty tags do not have ___________.
    14·1 answer
  • Which of the following statements are true about mobile app development? Select 3 options.
    8·2 answers
  • PLSS HELP ASAP ILL GIVE BRAINLIES THANKS
    7·2 answers
  • which two host names follow the guidelines for naming conventions on cisco ios devices? (choose two.)
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!