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
Avril invested $60,000 in a partnership with lane Jules Ray Ravi and petra. The total investment of all partners was 320,000 wha
laiz [17]

We have been given that Avril invested $60,000 in a partnership with lane, Jules, Ray, Ravi and petra. The total investment of all partners was 320,000.

To find percentage of the business Avril owns we will find 60,000 is what percent of 320,000.

\text{Percentage of business that Avril owns }=\frac{60,000}{320,000}\cdot100    

\text{Percentage of business that Avril owns }=\frac{6}{32}\cdot100

\text{Percentage of business that Avril owns }=0.1875\cdot100

\text{Percentage of business that Avril owns }=18.75

Therefore, Avril owns 18.75% of the business.

5 0
3 years ago
It seems logical that restaurant chains with more units (restaurants) would have greater sales. Ca 5 n we predict sales by measu
svetoff [14.1K]

Answer:

Step-by-step explanation:

Hello!

A regression model was estimated in order to test if the number of units of a restaurant chain affecta the sales of said restaurant chains.

The estimated model is:

Y= a + bX

Where

Y: is the sales of a restaurant chain

X: number of units of a restaurant chain

Looking at the computed data, the estimated coefficients are:

a= 4.633131413

b= 0.439724072

The correct regression equation to predict Sales based on Units, according to this analysis, is..

Y= 4.63 + 0.44X

I hope it helps!

6 0
4 years ago
An artist is designing triangular mirrors. Determine the number of different triangles that she can form using the given measure
AleksandrR [38]

Answer:

  • There are two solutions:
  • B = 58.7°, C = 82.3°, c = 6.6 cm
  • B = 121.3°, C = 19.7°, c = 2.2 cm

Step-by-step explanation:

You are given a side and its opposite angle (a, A), so the Law of Sines can be used to solve the triangle. The side given is the shorter of the two given sides, so it is likely there are two solutions. (If the given side is the longer of the two, there will always be only one solution.)

The Law of Sines tells you ...

  a/sin(A) = b/sin(B) = c/sin(C)

Of course, the sum of angles in a triangle is 180°, so once you find angle B, you can use that fact to find angle C, thus side c.

The solution process finds angle B first:

  B = arcsin(b/a·sin(A)) . . . . . . or the supplement of this value

then angle C:

  C = 180° -A -B = 141° -B

finally, side c:

  c = a·sin(C)/sin(A)

___

A triangle solver application for phone or tablet (or the one on your graphing calculator) can solve the triangle for you, or you can implement the above formulas in a spreadsheet (or even do them by hand). Of course, you need to pay attention to whether the functions involved give or take <em>radians</em> instead of <em>degrees</em>.

8 0
4 years ago
Ava is solving a geometry problem. The length of a side of a triangle is 36. A line parallel to that side divides the triangle i
kvasek [131]
<h3>Explanation:</h3>

The ratio of areas of similar triangles is the square of the ratio of their linear dimensions. If the smaller triangle is 1/2 the area of the larger, then its linear dimensions are √(1/2) those of the larger triangle.

  smaller side length = √(1/2) × larger side length

  = (√2)/2×36 = 18√2 ≈ 25.4558

7 0
3 years ago
For the following geometric sequence find the explicit formula. {12, -6, 3, ...}
Furkat [3]
X divide by -2

this is your formula

x/ (-2)

5 0
3 years ago
Other questions:
  • Help I do not know plz help
    15·1 answer
  • 2^3+2^3=x^3 <br> Solve for x
    7·1 answer
  • Woman salary is $2,800 in 1988 and was 15% more in 1989. If she paid a tax of 12.5% of her salary, how much tax did she pay in 1
    7·1 answer
  • Trigonometry heeellllppp plzzzz​
    6·1 answer
  • A box contains 2 green and 3 red balls of identical size. If two balls are picked randomly, one after the other, without replace
    12·1 answer
  • How do you subtract 206-118
    14·1 answer
  • What is the product of 25 and (6/5n + 3 1/4)​
    5·1 answer
  • PLS HELP I ONLY HAVE HR
    7·1 answer
  • Which inequality is true if p = 3.4?
    5·1 answer
  • 7.005 is 1/10 of 70.55
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!