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
Javier uses 1/8 teaspoons of nutmeg for each loaf of banana bread he makes. How many loaves of banana bread can javier make with
Reil [10]
If you have 1/8 in every loaf and 1 teaspoon of nutmeg is 8/8 and you have 4 of those think how much is 8/8 x 4.
8 0
2 years ago
Read 2 more answers
The line 3y+x=25 is a normal to the curve y=x2-5x+k.find the value of constant k.
ladessa [460]

Answer:

k = 11.

Step-by-step explanation:

y = x^2 - 5x + k

dy/dx = 2x - 5 = the slope of the tangent to the curve

The slope of the normal = -1/(2x - 5)

The line  3y + x =25 is normal to the curve so finding its slope:

3y = 25 - x

y = -1/3 x + 25/3 <------- Slope is -1/3

So at the point of intersection with the curve, if the line is normal to the curve:

-1/3 = -1 / (2x - 5)

2x - 5 = 3  giving x = 4.

Substituting for x in y = x^2 - 5x + k:

When x = 4, y =  (4)^2 - 5*4 + k  

y = 16 - 20 + k

so y = k - 4.

From the equation y = -1/3 x + 25/3,  at x = 4

y = (-1/3)*4 + 25/3 = 21/3 = 7.

So y = k - 4 = 7

k = 7 + 4 = 11.

6 0
2 years ago
A list has 10 numbers. Each number is a 1, 2, or 3. The average is 2 and the SD is 0. What is the list?
OLga [1]

Answer:

1, 1, 1, 2, 2, 2, 2, 3, 3, 3

Step-by-step explanation:

Since the standard deviation = 0

And the mean of the number = 2

If X is the sum of all the numbers, then

X/10 = 2

Cross multiply and make X the subject of formula

X = 2 × 10 = 20

The sum of the numbers will be 20

The number will be

1, 1, 1, 2, 2, 2, 2, 3, 3, 3

The sum of the above numbers is equal to 20 and the average value of the numbers is equal to 2.

7 0
2 years ago
"The last time I bought this product, it cost $20.00 but it looks like it costs $29.60 today. Why such a large increase?"
Oksanka [162]

Answer:

The company decided to increase the price by $9.60, or by 48%.

Step-by-step explanation:

To measure the price difference in dollars is simple, just subtract the old price from the new one:

29.60 - 20 = 9.60

Divide the price change by the old price to find the price increase in percentage:

9.60 \div 20 = 0.48 \\ 0.48 \times 100\% = 48\%

5 0
2 years ago
You schedule production of communications chips. After the chips are produced, they go to the QC department, where each chip mus
Irina-Kira [14]
The best batch size is 1053.

Since 5% have failed, this means 95% have passed the test.

95% = 95/100 = 0.95

We can set up an equation to answer this:
0.95x = 1000

Divide both sides by 0.95:
0.95x/0.95 = 1000/0.95
x = 1052.6 ≈ 1053
7 0
2 years ago
Other questions:
  • Suppose that 3 boys and 2 girls go to the theater and occupy 5 seats in a row. In how many ways can they be seated if all boys s
    14·2 answers
  • A dime has the same value of 10 pennies. Marley brought 290 pennies to the bank. How many dimes did Marley get?
    10·1 answer
  • Three tenths of a number is 2.1 . Determine the number
    6·2 answers
  • Steve is trying to increase his average pace per mile by running hills. The hill on 1st Avenue rises 3 vertical feet for each ho
    14·2 answers
  • A cable company claims that the average household pays $78 a month for a basic cable plan, but it could differ by as much as $20
    12·2 answers
  • Suppose a number cube labeled from 1 to 6 is rolled and the spinner below is spun one time. What is the probability of rolling a
    9·1 answer
  • Customers enter the waiting line at a cafeteria on a first-come, first-served basis. The arrival rate follows a Poisson distribu
    12·1 answer
  • In a triangle ABC,AB=9 and BC =12 which of the following Cannot be the length of AC.
    9·1 answer
  • The equation shown has a missing value. -2(2x-?)+1=17-4x. For what missing value(s), if any, does the equation have exactly one
    12·1 answer
  • The table below shows the cost per pound of different vegetables. Prices of Vegetables Vegetable Cost (per pound) Potatoes $3.89
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!