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
1/3 x + y = 4 solve for y
3241004551 [841]
Y=4
hope this helps :)
8 0
3 years ago
Read 2 more answers
Simone saved $15.45 from allowance, had $7.37 in her piggy bank, and had $22.55 left from her birthday. How much money does Simo
zmey [24]

Simon has $45.37

Simone savings from allowance= $15.45

Amount Simone had in piggy bank = $7.37

Left over from birthday = $22.55

Total amount of money that Simone now has = $15.45 + $7.37 + $22.55

Total amount of money that Simone now has = $45.37

Simon has $45.37

Learn more here: brainly.com/question/20521181

6 0
2 years ago
Starting with the number 3, build a sequence of 5 numbers.
just olya [345]

Answer:

3, 6, 9, 12, 15

adding 3 each time

or

3, 9, 27, 81, 243

multiplying by 3 each time

Step-by-step explanation:

8 0
3 years ago
A marble is randomly selected from a bag containing 15 black, 12 white, and 6 clear marbles. Find P(not clear). Round to the nea
dexar [7]
15+12+6= total number of marbles
33= total
Not clear marbles = 15+12 or 27
27 /33
.818181
82 percent
8 0
3 years ago
HELP PLEASE Rajiv has a liability on his car. How is this BEST demonstrated?
Dennis_Churaev [7]

He has insurance in case of an accident.

Insurance, in legal and financial terms, is a form of risk management, used primarily to protect against the risk of potential financial losses.

Ideally, it is defined as the fair transfer of risk of potential loss from one entity to another in exchange for a reasonable fee. In practice, however, the insurance protection business often results in litigation between the parties concerned.

Generally, it is a contract in which one party agrees to pay for the financial losses of another party as a result of a specified event.

Learn more about insurances in brainly.com/question/25796422

5 0
2 years ago
Read 2 more answers
Other questions:
  • How many solutions does the equation have? If you answer correctly you get a good amount of points, please give a good detailed
    8·2 answers
  • Translate the sentence into an equation. Nine more than the quotient of a number and 7 is equal to 3 . Use the variable y for th
    6·2 answers
  • HELP PLZ!!!! A courtyard in the shape of a right triangle is set in the middle of three square office buildings, with one office
    10·2 answers
  • What is the slope, m, and y-intercept for the line that is plotted on the grid below? On a coordinate plane, a line goes through
    12·2 answers
  • Kala runs 10 miles in 85 minutes. At the same rate, how many minutes would she take to run 8 miles
    13·1 answer
  • Fg is the midsegment of isosceles ABC , and KM is the midsegment of trapeziod cdef. ef km dc. find measurements BC,GF,CD, KM
    12·1 answer
  • Please help me! Will give points and mark brainliest answer. I have been stuck on this for a while too. Will give 30 points.
    11·1 answer
  • Can someone give me the answer? I’m really confused
    5·1 answer
  • I’m struggling bad! If you need a better pic I can
    9·1 answer
  • 17, 18, 22, 31, 47, ?
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!