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
Andres bought a pair of shoes for $80 and 1 shirt for $20. The sales tax is 5%. How much did Andres pay for all the items includ
Savatey [412]

Answer: $21

HOPE THIS HELPS

CAN U PLEASE GIVE ME BRAINLIEST

6 0
3 years ago
Read 2 more answers
Write the fraction 14/2 as a mixed number
Alja [10]
14/2 results in 7.
:)
8 0
3 years ago
Read 2 more answers
Point K lies at (-3,4). Point K is reflected over the y-axis and then translated 7 units down to produce K’. Which rule could ha
bogdanovich [222]

Answer:

K(x, y) —> K’(-x, y - 7)

Step-by-step explanation:

7 0
3 years ago
SOMEONE HELP ME ASAP I KEEP GETTING IGNORED WILL GIVE BRAINLIEST!
dlinn [17]

Answer:

B.) 1/7

Step-by-step explanation:

you have a total of 15 the you subtract one so you have

15-1= 14

you had 3 dimes and you took one out so you have

3-1=2

so you have 2/14 and in simplest for that is 1/7 because you divide both by 2

I hope this was good enough:

3 0
3 years ago
Read 2 more answers
2. Let's pretend I'd give you a penny today, two pennies
gizmo_the_mogwai [7]
Answer:
-f(n+1) = f(n) x 2
-on the 10th day you'd receive $512
-this function works by taking the output of the last input and multiplying it by 2 to find the new output.
-i'd rather take 40 days of this money scheme.

example of use:
f(10) = f(9) x 2
output of f(9) is 256 so f(10) = 256 x 2
7 0
2 years ago
Other questions:
  • What is the range of f(x) = -x2 + 4, if the domain is {2,0,1}?
    14·1 answer
  • Solve (6 1/6 -2 5/6)x3
    8·1 answer
  • Which statement is true regarding the graphed functions?
    6·2 answers
  • A gold coin appreciated in value from $200.00 to $475.00 in 6 years. Find the yearly rate of appreciation. Show or explain all w
    9·1 answer
  • 5. Is the side that is 100 meters long the hypotenuse, opposite or adjacent side? *
    9·1 answer
  • Pls Helpp meee Which one is it??? I will give u brainliest
    8·1 answer
  • Help asappp please ‼️‼️‼️‼️‼️
    12·1 answer
  • I’ll mark the brainiest
    5·1 answer
  • A truck driver averages 60 miles per hour while delivering freight to a customer. On the
    9·2 answers
  • Please help i dont get it
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!