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
Yakvenalex [24]
3 years ago
9

Write an if/else statement that assigns 0 to x when y is equal to 10; otherwise it should assign

Computers and Technology
1 answer:
Liono4ka [1.6K]3 years ago
7 0

Answer:

if(y==10)

{

     x=0;   // assigning 0 to x if y equals 10.

}

else

{

   x=1;   // assigning 1 to x otherwise.

}

Explanation:

In the if statement i have used equal operator == which returns true if value to it's right is equal to value to it's left otherwise false.By using this operator checking value of y and if it is 10 assigning 0 to x and if it is false assigning 1 to x.

You might be interested in
All of the following are examples of extracurricular activities except:
mart [117]
A, because normally that would be a requirment
8 0
3 years ago
Read 2 more answers
Analyze the following code (in both cases number has been declared and initialized): Code 1: boolean even; if (number % 2 == 0)
shusha [124]

Answer:

Both codes are correct.The value of even is true when the number is even.

Explanation:

Code 1:

number %2 ==0 means that when dividing number by 2 is the remainder coming out is zero.If it is true then even becomes is true if it is false then else statement is executes in which even becomes false.Means the number is odd.This code is simple and easy to understand.

Code 2:-

This code is a bit tricky and takes time to understand.even becomes true

when the number is divisible by 0 and false when it is not.

8 0
3 years ago
DOC
9966 [12]
FTP used to transfer files
AND used to narrow down the search results
HTTP used to access the web
SMTP used to send mail

i hope this helped! if so, please mark brainliest!
5 0
3 years ago
Select the correct answer.
Snezhnost [94]

Answer: Adjustment layer

Explanation:

The image editing tool or technique that should be used by Carter use is an adjustment layer.

The adjustment layer that can be seen in Photoshop refers to an editing tool that's non-destructive image which can be used in adding color and tonal adjustments to a particular image without the pixels changing permanently.

By using the adjustment layers, one can be able to edit and then discard the adjustments. One can also be bake to restore the original image anytime that the person wants.

3 0
3 years ago
Drag the tiles to the correct boxes to complete the pairs.
lianna [129]

Answer:

software

client devices

hardware

Explanation:

Plzzzzzzzzzzzzz give me brainiest

4 0
3 years ago
Other questions:
  • What is zenmap typically used for? how is it related to nmap? describe a scenario in which you would use this type of applicatio
    14·1 answer
  • If a secret key is to be used as a _________ for conventional encryption a single number must be generated.
    13·1 answer
  • Which of the following was the name of the first generation of cell phone networks?
    14·1 answer
  • Cuales son los elementos de la programación?
    10·1 answer
  • State two functions of windows environment​
    9·1 answer
  • Consider the following definition of the recursive function mystery. int mystery(int first, int last) { if (first > last) ret
    12·1 answer
  • Analyze the following code. public class Test { public static void main(String[] args) { double radius; final double PI= 3.15169
    14·1 answer
  • What will you see on the next line? >>> int(6.5)
    12·2 answers
  • You were just hired as an IT Specialist for Smalltown School District. Your first assignment is to review a problem area& in
    11·1 answer
  • Explain why you would use the soft on/off jumper when working on ATX system
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!