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]
2 years ago
12

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

Mathematics
1 answer:
DedPeter [7]2 years 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
A survey found that 89% of a random sample of 1024 American adults approved of cloning endangered animals. Find the margin of er
Kobotan [32]

Answer:

The margin of error for the survey is 0.016

Step-by-step explanation:

We are given the following in the question:

Sample size, n = 1024

Sample proportion:

\hat{p} = 89\% = 0.89

We have to find the margin of error associated with a 90% Confidence interval.

Formula for margin of error:

z_{stat}\times \sqrt{\dfrac{\hat{p}(1-\hat{p})}{n}}

z_{critical}\text{ at}~\alpha_{0.10} = 1.64

Putting the values, we get:

M.E = 1.64\times (\sqrt{\dfrac{0.89(1-0.89)}{1024}})\\\\M.E=0.016

Thus, the margin of error for the survey is 0.016

3 0
2 years ago
Rosita and Garth are saving up for a vacation, and begin with a certain amount saved each. If Rosita works 5 hours, she will hav
noname [10]
Treat each (time, money) pair as an (x, y) pair, and get the slope of the line:
For Rosita, (5, 128), (7, 164): m = (y2 - y1)/(x2 - x1) = (164 - 128)/(7 - 5) = 18, implying that she earns $18/hr. The y-intercept is calculated as: y = 18x + b, 128 = 18*5 + b, b = $38, meaning that she started with $38. Rosita's equation is y = 18x + 38.
For Garth, (3, 124), (8, 194): m = (194 - 124)/(8 - 3) = 14. For 124 = 14*3 + b, b = $82. Garth's equation is y = 14x + 82

To find out when they will have saved the same amount, both equations would have the same y-value:
18x + 38 = 14x + 82
4x = 44
x = 11 hours
y = 18*11 + 38 = $236 (alternatively, y = 14*11 + 82 = 236)
This means that Rosita and Garth will have both saved $236 after 11 hours of working.
7 0
2 years ago
What is the vertex and the axis of symmetry of the quadratic function graphed below?
Kazeer [188]
The answer is B ! as vertex is (6,3) and axis of symmetry lies on x=6 !

if you need explanation, comment !
8 0
2 years ago
Read 2 more answers
8. The ratio of students in Arts, Science and Commerce Faculties is 5: 4: 3. If the number
N76 [4]

Answer:

Arts=295, Commerce=177

Step-by-step explanation:

That the three subjects have a common ratio implies that there is some common factor between them that relates to the actual number of students in each area, so 5:4:3 means 5x:4x:3x for some value of x

We know that there are 236 science students, so 4x = 236 or x = 59

so the number of arts students is 5(59) and the number of commerce students is 3(59)

Arts = 5*59 = 295

Commerce = 3*59=177

3 0
1 year ago
829.9 to the nearest whole number
anzhelika [568]

when rounding numbers: if it's four or less, you round down. if it's five or more, you round up. 9 is bigger than 4, so the nearest whole number is 830.

7 0
2 years ago
Read 2 more answers
Other questions:
  • Find the third iterate, x3, of the function f(x) = 3x + 5 for an initial value of x0 = 1.
    8·1 answer
  • the chorus has 35 members. which expression represents the number of ways a group of 6 members can be chosen to do a special per
    6·2 answers
  • Jennifer has a bag of chips that contains 2 red chips and 1 black chips. If she also has a fair die, what is the probability tha
    8·2 answers
  • A cross-country skier skied at a rate of 10.82 miles per hour. In 2.45 hours, the skier covered 2.6509 miles.
    10·2 answers
  • Frank cut a 52 inch string into 3 pieces. The first piece is 20 inches long. The second piece is at least 12 inches long, but no
    14·1 answer
  • The failure rate for a guided missile control system is 1 in 1,000. Suppose that a duplicate but completely independent control
    10·1 answer
  • Which of the following are descriptive images? Select all that apply.
    11·1 answer
  • Which transformation best describes the image of a object viewed through a microscope?
    6·2 answers
  • Which term in the arithmetic sequence 11, 4,-3 . . . is -129?​
    5·1 answer
  • A local pizza restaurant delivery time has a uniform distribution over 10 to 75 minutes. What is the probability that the pizza
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!