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
Answer 1 or answer 2?
Viefleur [7K]

Answer:

2 Function B

Step-by-step explanation:

4 0
3 years ago
Read 2 more answers
A land mass is roughly in the shape of a rectangle whose perimeter is 1200 miles the width is 120 miles less than the length fin
Ostrovityanka [42]

Answer:

Length: 360. Width: 240.

Step-by-step explanation:

360 * 2 = 720

240 * 2 = 480

720 + 480 = 1,200

7 0
2 years ago
Solve the system of linear equations using matrices.<br> x+6y=7<br> x + 5y=4
Rzqust [24]

Answer:

1+6y= "7y=7"

1+5y= "6y=4"

Step-by-step explanation:

X represents "1" so you replace your "X" with "1" and solve the equation.

3 0
3 years ago
Round 733.399 to the nearest hundredth
VMariaS [17]
733.400 Is your answer.
3 0
3 years ago
Read 2 more answers
Franklin bought a book with 90 pages. If he
BartSMP [9]
The answer is A) 60%
3 0
3 years ago
Other questions:
  • What is the probability of drawing the compliment of a king or a
    9·1 answer
  • I am struggling on how to rationalize the denominators and simplify the problem.
    5·2 answers
  • Simplify 3√10+7√15-6√10-4√15
    10·1 answer
  • PLEASE HELP ME!!!!!!!!!!! WILL GIVE BRAINLIEST AND RATING!!!!!!!!!!!!!!!!!!!!!
    6·1 answer
  • Mr. Miller owns two hotels and is ordering towels for the rooms. He ordered 27 hand towels and 48 bath towels for a bill of $540
    9·1 answer
  • Kris has finished 7/8 of 40 questions. how many were done​
    14·1 answer
  • PLEASE HELP MEEEEEE PLEASEEEEEEEE!!!!!! IM TIMED
    6·2 answers
  • Harold has 2384 g of zinc for his science experiment how many kilograms of zinc does he have? PLEASE HELP I AM TAKING OVERDUE HO
    8·1 answer
  • On a number line, point D is at -3, and point E is at 6. The point F lies on . The ratio of to is 2 : 3. Where does point F lie
    13·1 answer
  • Please help im in middle school and need help w graphinggg
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!