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
sergey [27]
3 years ago
11

What is wrong, logically, with the following code? if (x > 10) System.out.println("Large"); else if (x > 6 && x &l

t;= 10) System.out.println("Medium"); else if (x > 3 && x <= 6) System.out.println("Small"); else System.out.println("Very small");
Computers and Technology
1 answer:
Alex73 [517]3 years ago
8 0

Answer:

The above code will hold the second condition with && operator, like "x<=6" or"x<=10" condition in the else if statement which is of no use.

Explanation:

  • The above code holds a condition-based statement by the help of if-else statement where--
  • The first if-condition will states true when the value of x will be greater than 10, So the if-else condition will be tested for that value of x which is less than or equal to 10.
  • So there is no needs to justify the " x <= 10" for else if statement and " x <= 6" for the second else if statement because the second else if statement will be tasted when the value of x will be less than or equal to 6.
You might be interested in
HELPPPPP 20 POINTS CORRECT ANSWER GETS BRAINLIEST<br>sorry wrong amount of points ;-;
Vinvika [58]

Answer:

C

Explanation:

6 0
3 years ago
Read 2 more answers
What is the difference between a fragment shader and vertex shader? How do they relate?
Inessa05 [86]

Answer:

vertex  shader is performed, while on each pixel,  fragment shader is achieved. The shader fragment is implemented after the implementation of shader vertex

Explanation:

A shader fragment is the same as a shader for pixels.

A major distinction is that a shader of the vertex can alter the vertices characteristics. whixch are the end points of polygon

On the other side, the fragment shader is responsible for the display of the pixels between the vertices. They are interpolated by particular guidelines between the specified vertices.

On each vertex, vertex  shader is performed, while on each pixel,  fragment shader is achieved. The shader fragment is implemented after the implementation of shader vertex

5 0
3 years ago
Can someone please help me! It’s due Thursday!
Eva8 [605]

Answer:

if the input is zero the out put is 1

Explanation:

because if you think about it if the input was 1 the output would be zero

7 0
2 years ago
Binary is used to store what on a computer?<br> •Data<br> •Dates<br> •Address
solmaris [256]

Answer:

Data................

5 0
2 years ago
Read 2 more answers
I will give brainliest!!!!! I NEED HELP ASAP!!!!!!!
klemol [59]

Answer:

I'm pretty sure it's the first answer.

4 0
3 years ago
Other questions:
  • 3. If B3=6 and D5=8, what would the following function return? IF(B3&gt;D5, "Closed", D5-B3) *
    10·2 answers
  • Why is driving a privilege?
    15·2 answers
  • I have tried installing "windows media player" on my computer but at a point, something disrupts its instalment or I am asked to
    7·1 answer
  • What is 450 g of flour a measure of?
    11·1 answer
  • How do you change the name on your brainly account?
    12·1 answer
  • Why do certain words change color in Python?
    6·1 answer
  • Tech A states that modern vehicles use asbestos as the brake material. Tech B states that asbestos is no longer used in brakes.
    8·1 answer
  • Cyberbullying can negatively impact a victim’s <br> well-being.
    13·1 answer
  • Multi-part question:
    13·1 answer
  • OI MINHA PRIMEIRA VEZ AQUI
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!