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
Triss [41]
3 years ago
9

max is a function that accepts two int parameters and returns the value of the larger one. Two int variables, population1 and po

pulation2, have already been declared and initialized. Write an expression (not a statement!) whose value is the larger of population1 and population2 by calling max.
Mathematics
1 answer:
irina1246 [14]3 years ago
6 0

Answer:

Value=max(populatio1,population2)

Step-by-step explanation:

Assuming that two int variables, population1 and population2, have already been declared and initialized, we car write the next function:

max(population1,population2)

  if population1 => population2

     then var=population1

     else var=population2

  endif

  return var

This function decides between two values population1 and population 2 and return the value of the larger one.

Note that we can have the option where population1 and population 2 are equal and doesn´t matter if we choose population1 or population2

You might be interested in
Pls answer me this all question correctly pls I beg you pls friends pls pls pls pls pls pls pls pls​
Andre45 [30]

Answer:

a. \: 28

b. \: 5

Step-by-step explanation:

a. \: 88 \div 3 \frac{1}{7}

88 \div  \frac{22}{7}

Multiply the numerator by the reciprocal of the denominator.

88 \div  \frac{7}{22}

4 \times 7

28

b. \: 49 \frac{2}{9}  \div 9 \frac{4}{9}

\frac{425}{9}  \div  \frac{85}{9}

Multiply the numerator by the reciprocal of the denominator.

\frac{425}{9}  \times  \frac{9}{85}

5

<h3>Hope it is helpful...</h3>
5 0
3 years ago
Add the two expressions.<br> 3x + 7 and 92 - 2<br> Enter your answer in the box.<br> Help
Paul [167]
The answer to the question is 3x+97
3 0
2 years ago
A car increases, then decreases, its speed. Which table could represent the speed of the car? A 2-column table with 5 rows. The
Ivenika [448]

Answer:

The speed increases (45—>47—>49) then decreases (48—>47) over time.

Step-by-step explanation:

HOPE THIS HELPED ✨

8 0
3 years ago
Solve x2 − 8x + 5 = 0 using the completing-the-square method. (2 points)
RoseWind [281]

Answer:

x = 4 +  \sqrt{11},  \:  \: x = 4 -  \sqrt{11}

Step-by-step explanation:

{x}^{2}  -8x + 5 = 0 \\  \\  {x}^{2}  - 8x +  {4}^{2}  =  - 5 +  {4}^{2}  \\  \\  {(x - 4)}^{2}  =  - 5 + 16 \\  \\  {(x - 4)}^{2}  = 11 \\  \\ x - 4 =   \pm \sqrt{11}  \\  \\ x = 4 \pm \sqrt{11}  \\  \\ x = 4 +  \sqrt{11}, \:  \: x = 4 -  \sqrt{11}

8 0
3 years ago
What is the distance between (1,-2) and (6,10)
Bad White [126]

Answer:

5 left, (5,_) and 12 up. (5,12)

Step-by-step explanation:

5 0
3 years ago
Other questions:
  • A florist has 96 white roses, 72 red roses, and 108 pink roses. If all the roses are used, what is the greatest number possible
    8·1 answer
  • Which expression has a value of 15 when 17= 7?
    15·1 answer
  • What is the y-intercept of the graph of the equation y=3(2^x)<br><br>a.6<br>b.3<br>c.2<br>d.8
    12·1 answer
  • Transversal / cuts lines a, b, c, and d.<br> Which two lines are parallel?
    5·1 answer
  • The point A(-1, 4) is translated five units right and three units down. Which rule describes the translation?
    14·1 answer
  • Make x the subject of the formula<br><br><br> x/2c = a + 4
    12·1 answer
  • Please help asap!!! It’s late!
    13·2 answers
  • Can anyone help me please <br> I’ll mark as brainliest.
    15·1 answer
  • HELP!!!! anyone know any of these answers for the “Homework: February Spiral Review” 20 questions!!!!
    13·2 answers
  • Solve the following proportion 16/18 = 4/c​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!