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
Mama L [17]
3 years ago
8

Consider the following code segment. int x = 5; int y = 6; /* missing code */ z = (x + y) / 2; Which of the following can be use

d to replace /* missing code */ so that the code segment will compile? I.int z = 0; II.int z; III.boolean z = false;
Mathematics
1 answer:
Murrr4er [49]3 years ago
8 0

Answer:

II. int z;

Step-by-step explanation:

int z;

is the best option, because on the next line you will define the variable as

z = (x + y) / 2;

you can also use int z=0; but it is not necessary according to the code segment given.

You might be interested in
Nine less than a number algebraic expression
nalin [4]
Nine less than a number 

is

n - 9
7 0
3 years ago
Read 2 more answers
PLEASE SOMEONE HELP ME I NEED TO TURN IT IN BY 12 HELP THANK YOY
Vladimir79 [104]

Answer:

Its C

Thanks

Step-by-step explanation:

hope i helped

6 0
3 years ago
The storage space of a moving truck is in the shape of a rectangular prism. The dimensions are 6 feet wide, 10 feet long, and 6
Karolina [17]
Forgive if I am wrong, but I think the answer is 360 feet cubed 
3 0
3 years ago
Read 2 more answers
Today, everything at a store is on sale. The store offers a 20% discount. The regular price of a T-shirt is $18. What is the dis
Lyrx [107]

Answer:

$14.4

Step-by-step explanation:

20%= .2

$18 x .2 = $3.60

$18 - $3.6 = $14.4

8 0
3 years ago
I NEED HELP PLS SOMEONE HELP ME!!!!
Andre45 [30]

Answer:

126 centimeters squared

Step-by-step explanation:

8 0
3 years ago
Other questions:
  • Find an angle where sine and cosine are equal. find the tangent of that angle
    12·1 answer
  • . You and three friends are planning a trip. You want to keep the cost below $90 per person. Write and solve an inequality
    5·1 answer
  • Can someone please help me
    15·1 answer
  • A survey of students at a university shows that 3out of 4 drinks coffee. of the students who drink coffee, 1 out of 5 add cream
    7·1 answer
  • Help please ! B C or D
    9·1 answer
  • The radius of a circle is 3 millimeters. What is the circle's area?
    5·1 answer
  • Please help me under stand this
    9·2 answers
  • Please help thank you very much!!! <3
    9·2 answers
  • What is the equation of the line that passes through the point ( − 4 , 8 )and has a slope of − 1/4
    8·1 answer
  • PLZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!