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
A spinner has three sections. The table shows the results of spinning 80 times. ({Section 1|18}{Section 2|30}{Section 3|32}) Wha
svetoff [14.1K]
Experimental probability means what the probability is concluded by the experiment / trials / real results

Assuming {Section 3 I 32} , means it landed there 32 times out of 80.
We write this as a fraction:
32/80 , we simplify it:
16/40
8/20 <- notice how i'm just halving until I can't anymore
4/10
2/5 <- the simplest answer

The answer is D) 2/5


4 0
3 years ago
You would like to join a fitness center. Fit-N-Trim charges $80 per month. Fit-For-Life charges a one tim e membership fee of $7
Y_Kistochka [10]
I don't do good with slope intercept, but I can tell you that Fit n Trim would be $80m and Fit for Life would be $75+55m. 
6 0
3 years ago
GIVING AWAY FREE ROBL0X ACCOUNT WITH R0BUX
aniked [119]

Answer:

Imagine playing R0bl0x

Step-by-step explanation:

( dont take it srsly lol im jk)

3 0
3 years ago
Read 2 more answers
Jason and Maria are playing a board game in which three dice are tossed to determine a player's move. Find each probability for:
fredd [130]
Tossing a die will have 6 possible outcomes. Those are having sides that are number 1 to 6. The sample space of tossing 3 dice is equal to 6³ which is equal to 216. Now for the calculation of probabilities,

P(two 5s) = (1 x 1 x 5)/216
As we have to have the 5 in the die for two times, then for the 1 time, we can have all other numbers except 5. The answer is 5/216. 

P(three 5s) = (1 x 1 x 1)/216   = 1/216

P(one 5 or two 5s)  = (1 x 5 x 5)/216 + (1 x 1 x 5)/216 = 5/36
6 0
3 years ago
HELP!!! STATS!!!
Vadim26 [7]

Answer:

The 99% confidence interval is   165.776  <  \mu <  180.224  

Step-by-step explanation:

From the question we are told that

     The sample size is  n  = 100

     The sample mean is  \=  x  =  173 \  days

      The population standard deviation is  \sigma =  28 \ days  

From the question we are told the confidence level is  99% , hence the level of significance is    

      \alpha = (100 - 99 ) \%

=>   \alpha = 0.01

Generally from the normal distribution table the critical value  of  \frac{\alpha }{2} is  

   Z_{\frac{\alpha }{2} } = 2.58

Generally the margin of error is mathematically represented as  

      E = Z_{\frac{\alpha }{2} } *  \frac{\sigma }{\sqrt{n} }

      E = 2.58  *  \frac{28 }{\sqrt{100} }

=>    E = 7.224

Generally 95% confidence interval is mathematically represented as  

      \= x -E <  \mu <  \=x  +E

=>     173 -7.224  <  \mu < 173 + 7.224    

=>     165.776  <  \mu < 180.224  

     

4 0
3 years ago
Other questions:
  • The range of the function given below is the set of all positive real numbers greater than 6. F(x)=6+2^x
    7·1 answer
  • Solve for w<br> - 2w - 7 = 9
    12·2 answers
  • Fill in the missing information. Tim Worker is doing his budget. He discovers that the average miscellaneous expense is $45.00 w
    5·2 answers
  • If a is the average (arithmetic mean) of 6m and 10, b is the average of 4m and 4, and c is the average of 14m and 16, what is th
    9·1 answer
  • Solve for x: -0.25(-x-12)=2​
    9·1 answer
  • The table shows the number of tickets sold for the school dance and the amount of money earned.
    10·1 answer
  • Solve the following system<br> algebraically:
    5·2 answers
  • If (44)x = 432, what is the value of xIf (44)x = 432, what is the value of x?
    9·1 answer
  • <img src="https://tex.z-dn.net/?f=4%20%7Bx%7D%5E%7B2%7D%20%20-%202x%20%2B%20x%20%3D%205%20%7Bx%7D%5E%7B2%7D%20%20%2B%202x%20%5C%
    8·2 answers
  • Please help me asap urgent grade 11 math
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!