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
Jami can mow 1/6 acre in 8 minutes. If her rate is constant, can Jami mow 1 1/2 acres in one hour?
lapo4ka [179]

Time taken by Jami to mow 1/6 acres is 8 minutes=8/60=2/15 hours.

Rate at which Jami is mowing will be:

rate=(number of acres)/(time)=(1/6)/(2/15)

=1/6÷2/15

=1/6×15/2

=5/4 acres/hour

=1.25 acres/hour

From above calculations we conclude that Jami cannot mow 1.5 acres in 1 hour 



4 0
3 years ago
Which container holds more a half gallon milk jug or a 2 liter juice bottle
STatiana [176]
To find the correct answer to the given question, it is important to bring both the units to liter or gallon. Let us convert the half gallon milk to liter. We already know that
1 gallon = 3.785 liter
Then
1/2 gallon = 3.785/2 liter
                 = 1.89 liter
From the above deduction we can conclude that the 2 liter juice bottle will hold more.
8 0
3 years ago
What is the sum of the polynomials?
kiruha [24]
I don’t see the picture
6 0
4 years ago
HELP!!!!! PLZ The values in the table represent a linear function. What is the common difference of the associated arithmetic se
adell [148]

Answer:

The common difference is 14

Step-by-step explanation:

The series goes 11,25,39,53,67

To find the common difference, take the second term and subtract the first term.

25-11  = 14

Check with the third term and the second term

39-25 = 14

The common difference is 14

6 0
3 years ago
Read 2 more answers
60 points!!! Please answer immediately and the entire page please I will also give you five stars
Nataly_w [17]

Answer:

Step-by-step explanation:

9.  Correct, D

-3Y + 9X <= 12

3Y - 9X => -12

3Y => -12 + 9X  

Y => -4 + 3X  

10.  D

11.  D

12.  Correct, B

13.  Correct, E

14.  A

15.  B

5 0
3 years ago
Other questions:
  • Can some one help me to find the volume please tell me your answer step by step please , please I really need help I hope some o
    11·1 answer
  • The length of a rectangular deck is 4 times its width if the decks perimeter is 30 ft, what is the decks area
    10·1 answer
  • What is the value of tanA<br> 8/10<br> 6/10<br> 8/6<br> 6/8
    7·1 answer
  • Please help me out :)
    9·1 answer
  • Solve the equation for y: -8x + 4y = 20 A) y = 2x - 5 B) y = 2x + 5 Eliminate C) y = 1 2 x + 5 D) y = 1 2 x + 20
    14·2 answers
  • Fill in the missing number to complete the linear equation that gives the rule for this table.
    10·2 answers
  • Which best describes the rule for this pattern 1,-12, 12,-1
    5·2 answers
  • What is the slope for this equation <br> 2y=8x-6<br><br> Answers: <br> 8<br> -6<br> 4<br> -8<br> 6
    6·2 answers
  • Consider the graph of the function f(x) =
    6·1 answer
  • Can someone help me I don't get it
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!