answer.
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
Sidana [21]
1 year ago
12

Write a function max that has two c string parameters and returns the larger of the two.

Mathematics
1 answer:
DedPeter [7]1 year ago
7 0
<span>char max(char number1, char *number2){
if (strcmp(number1, number2) > 0)
return number1;
else
return number2;
}</span>
You might be interested in
Drag each interval to a box to show if the function shown is increasing, decreasing, or neither over that interval.
prisoha [69]

Answer:

Increasing

−5<x<−1

−1<x<1

Decreasing

4<x<7

−8<x<−5

Neither Increasing nor Decreasing

1<x<4

Step-by-step explanation:

8 0
1 year ago
Read 2 more answers
The unit cost, in dollars, to produce bins of cat food is $3 and the fixed cost is $6972. The price-demand function, in dollars
stellarik [79]

Answer:

Revenue , Cost and Profit Function

Step-by-step explanation:

Here we are given the Price/Demand Function as

P(x) = 253-2x

which means when the demand of Cat food is x units , the price will be fixed as 253-2x per unit.

Now let us revenue generated from this demand i.e. x units

Revenue = Demand * Price per unit

R(x) = x * (253-2x)

      = 253x-2x^2

Now let us Evaluate the Cost Function

Cost = Variable cost + Fixed Cost

Variable cost = cost per unit * number of units

                      = 3*x

                      = 3x

Fixed Cost = 6972 as given in the problem.

Hence

Cost Function C(x) = 3x+6972

Let us now find the Profit Function

Profit = Revenue - Cost

P(x) = R(x) - C(x)

= 253x-2x^2 - (3x + 6972)

= 253x-3x-2x^2-6972\\= 250x-2x^2-6972\\=-2x^2+250x-6972\\

Now we have to find the quantity at which we attain break even point.

We know that at break even point

Profit = 0

Hence P(x) = 0

-2x^2+250x-6972=0\\

now we have to solve the above equation for x

Dividing both sides by -2 we get

x^2-125x+3486=0

Now we have to find the factors of 3486 whose sum is 125. Which comes out to be 42 and 83

Hence we now solve the above quadratic equation using splitting the middle term method .

Hence

x^2-42x-83x+3486=0\\x(x-42)-83(x-42)=0\\(x-42)(x-83)=0\\

Either (x-42) = 0 or (x-83) = 0 therefore

if x-42= 0 ; x=42

if x-83=0 ; x=83

Smallest of which is 42. Hence the number of units at which it attains the break even point is 42.

5 0
2 years ago
Sue had finished three Christmas gifts before the first of December. After that she finished one gift each day. Which equation d
Verdich [7]
Xxxxxxxxxxxxxxxxxxxx
6 0
1 year ago
Which number in the monomial 125x18y3z25 needs to be changed to make it a perfect cube?
andriy [413]
To make the monomial 125 x^18 y^3 z^25 a perfect cube, the entire expression should be reduced to a rational number when the cube root is taken. For the constant 125, the cube root is 5, so it doesn't need to be changed. For the variables, the exponents should be divisible by 3. The exponent of z is not divisible by 3. It can be subtracted with 1 or added with 2 to make the expression a perfect cube.
7 0
2 years ago
Read 2 more answers
A store uses the expression –2p + 50 to model the number of backpacks it sells per day, where the price, p, can be anywhere from
Grace [21]

Your question is  store uses the expression –2p + 50 to model the number of backpacks it sells per day, where the price, p, can be anywhere from $9 to $15. Which price gives the store the maximum amount of revenue, and what is the maximum revenue?

The answer is C. $12.50 per backpack gives the maximum revenue; the maximum revenue is $312.50.

7 0
1 year ago
Read 2 more answers
Other questions:
  • A = FV - OV/T for OV
    11·2 answers
  • Consider △DFE. What are the inputs or outputs of the following trigonometric ratios? Express the ratios in simplest terms.
    7·2 answers
  • Lydia spent 4/5 of her money on a mobile phone and 2/3 of the remaining amount on a bag. She had $60 left. How much more money d
    8·1 answer
  • Checking account A charges a monthly service fee of $12 and a wire transfer fee of $10.50, while checking account B charges a mo
    13·1 answer
  • Many urban zoos are looking at ways to effectively handle animal waste. One zoo has installed a facility that will transform ani
    5·1 answer
  • In a spelling bee, scholarships are awarded to the top three spellers. The first-place speller receives $5,000. The second-place
    11·1 answer
  • The statement some dogs are brown has 16 letters. Choose one of these 16 letters uniformly at random (i.e., with equal probabili
    12·1 answer
  • Which statement best explains the relationship between lines FG and HJ?
    10·2 answers
  • . A system may become infected by some spyware through the internet or e-mail. Seventy percent of the time the spyware arrives v
    6·1 answer
  • The number of typos made by a student follows Poisson distribution with the rate of 1.5 typos per page. Assume that the numbers
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!