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
10. 10x + 5y = 15<br> y = 2x - 3
TiliK225 [7]

Answer:

if your looking for x then

Step-by-step explanation:

first add in the y by doing 10x+5(2x-3)=15 then 10x+10x-15=15 then 20x-15=15 then 20x=30 then divided by 20 for both sides which gets you x=30/20 or 1 1/3

6 0
3 years ago
Read 2 more answers
Find x! Please help!!
a_sh-v [17]

{(8 + x)}^{2}  =  {8}^{2}  +  {15}^{2}  \\ {(8 + x)}^{2}  =  64  +  225 \\  {(8 + x)}^{2}  = 289 \\ {(8 + x)}^{2}  =  {17}^{2}  \\ 8 + x = 17 \\ so \: x = 17 - 8 = 9
5 0
3 years ago
What is the coefficient for x2 -5x+6
Tomtit [17]
-5 because the variable is x and a coefficient comes before the variable.

Hope this helps!
4 0
4 years ago
Which two inequalities would you use to solve |2x – 4| &lt; 5?
padilas [110]
A. because when you face an equality, you need to have a negative and positive answer.
5 0
3 years ago
Plz help ill give brainliest
Inessa [10]

Answer:

I'm sorry idk

Step-by-step explanation:

5 0
3 years ago
Read 2 more answers
Other questions:
  • Can someone plz help me with this question???
    14·2 answers
  • Inverse of y=xsquare root -36
    14·1 answer
  • A snack-size bag of M&amp;Ms candies contains 14 red candies, 10 blue, 5 green, 11 brown, 3 orange, and 12 yellow. If a candy is
    5·1 answer
  • jasmine pet guinea pig gained8 ounces in one month.Write an integer to describe the amount of weight her pet gained
    7·1 answer
  • The probability is 1% that an electrical connector that is kept dry fails during the warranty period. If the connector is ever w
    6·1 answer
  • Keep gettin those wrong. Please help!!!
    5·1 answer
  • Translate this word problem as a system of equations and then solve using substitution.
    7·1 answer
  • The number of people I don’t know amusement park triples every hour. This morning, there were 20 people at the muse meant park w
    13·1 answer
  • Pls I need help on this and many more
    7·1 answer
  • Can someone help? Im new to this stuff
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!