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
X over 3 equals 1 over 4. how do i solve this in algebra? its solving one-step equations.
Snezhnost [94]

Cross multiply  X×4=3×1 4x=3 X= 3/4

6 0
3 years ago
The measure of one angle is six more than half the measure of another angle. If the angles are complementary, find both measures
Snowcat [4.5K]

Answer:

The measures of the two angles are 34° and 56°

Step-by-step explanation:

* Lets explain how to solve the problem

- The complementary angles are the angles whose the sum

  of their measures is 90°

- The measure of one angle is six more than half the measure

 of another angle

- Let the measure of the second angle angle is x

∵ The measure of the 2nd angle is x

∵ The measure of the first angle is 6 more than the half of the

  measure of the second angle

∴ The 1st angle is 6 + 1/2 x

∵ The two angles are complementary

∴ The sum of their measures is 90°

∴ x + (6 + 1/2 x) = 90

∴ (x + 1/2 x) + 6 = 90

∴ 3/2 x + 6 = 90

- Subtract 6 from both sides

∴ 3/2 x = 84

- Multiply both sides by

∴ 3x = 168

- Divide both sides by 3

∴ x = 56

∵ x is the measure of the 2nd angle

∴ The measure of the 2nd angle is 56°

∵ The measure of the 1st angle = 6 + 1/2 x

∵ x = 56

∴ The measure of the 1st angle = 6 + 1/2(56) = 34°

* The measures of the two angles are 34° and 56°

4 0
3 years ago
74 students were chosen from a local university to participate in a study. Every student attending the university had an equal p
ra1l [238]
Hhey it should be 
Random selection
just because they all have a chance :) hope it helps
8 0
4 years ago
Please help and thank you
Akimi4 [234]

Answer:

Its B. Hope it helps! <3

5 0
3 years ago
Read 2 more answers
A and B are complementary angles. If A = (x – 23)° and m
Lana71 [14]

Answer:

∠ B = 85°

Step-by-step explanation:

Complementary angles sum to 90° , then

x - 23 + 2x + 29 = 90 , that is

3x + 6 = 90 ( subtract 6 from both sides )

3x = 84 ( divide both sides by 3 )

x = 28

Then

∠ B = 2x + 29 = 2(28) + 29 = 56 + 29 = 85°

5 0
3 years ago
Other questions:
  • The probability of drawing a yellow triangle is 3/5. If you replace the card, how many times will you draw a yellow triangle out
    6·1 answer
  • Math 1/3 divided by 3/8=
    5·1 answer
  • BRAINLIEST FOR BEST ANSWER
    6·2 answers
  • Refer to the park map and check all that apply.
    5·2 answers
  • Which statement is not always true for a parallelogram?
    13·2 answers
  • Write an expression to represent Vivian's change in elevation from -9.6 feet at the bottom of the Ferris wheel to 12.3 feet at
    13·1 answer
  • A factory makes 1,200 shirts every 6 hours. The factory makes shirts for 63 hours each week. What are the fewest number of days
    12·1 answer
  • For what values of m does the equation mx = 5 have a single solution? can m have a value for which the equation does not have so
    8·1 answer
  • Factor the expression completely. -9x^3+72x^5 −9x 3 +72x 5
    5·1 answer
  • Please hurry in test rn! dont reply if you not giving answer
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!