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
uranmaximum [27]
3 years ago
6

12 ch 5 warm up: people's weights (java) (1) prompt the user to enter five numbers, being five people's weights. store the numbe

rs in an array of doubles. output the array's numbers on one line, each number followed by one space. (2 pts) ex: enter weight 1: 236.0 enter weight 2: 89.5 enter weight 3: 142.0 enter weight 4:
Mathematics
1 answer:
Rainbow [258]3 years ago
5 0

#include <stdio.h>

int main()
{
double d[5] , total = 0, average = 0, max = 0;
int i = 0;
for(i=0; i<5; i++){
printf("Enter Weight %d: ", (i+1));
scanf("%lf", &d[i]);
}
printf("You entered: ");
for(i=0; i<5; i++){
printf("%lf ", d[i]);
if(max < d[i]){
max = d[i];
}
total = total + d[i];
}
average = total / 5;
printf("\nTotal weight: %lf\n", total);
printf("Average weight: %lf\n", average);
printf("Max weight: %lf\n", max);
  
return 0;
}

You might be interested in
Please help me! im literally desperate! math is soooo hard! help me pls &lt;3
MatroZZZ [7]

Answer:

its the multiplication property

Step-by-step explanation:

7 0
3 years ago
The teacher has 5 cups or broth to share amoung 4 students. draw a model and explain your answer.
Mama L [17]

Answer:

1.25,but your teacher is prolly looking for a fraction so 1 1/4

Step-by-step explanation:

DO NOT PUT 20 THAT PERSON S WRONG

3 0
3 years ago
Convert the following in standard form : -4x=4y-52
goldenfox [79]
The standard form of any linear equation with two variables is ax+by=c, where a, b, and c are constants. To convert this equation to standard form, simply subtract 4y from both sides to get

-4x-4y=-52

We could leave it in this form, though, in this case, it might be better at if we multiplied both sides by -1 to get

4x+4y=52
8 0
3 years ago
10. Write the slope-intercept form of the equation of the
Ghella [55]

Answer:

y = -3x + 18

Step-by-step explanation:

The slope intercept form of a line is expressed as y = mx+c

m is the slope

b is the intercept

Get the slope

Given the equation of a line 9x + 3y = 6

Rewrite

3y = -9x + 6

y = -9x/3 + 6/3

y = -3x + 2

Hence the slope of the line is -3

Get the y-intercept

Substitute m = -3 and (5,3) into y  = mx+b

3 = -3(5) + b

3 = -15 + b

3 + 15 = b

18 = b

b = 18

Get the required equation

y = mx+b

y = -3x + 18

This gives the required equation

6 0
3 years ago
Someone p l e a s e help
marissa [1.9K]

Answer:

Step-by-step explanation:

shift up 3

7 0
3 years ago
Other questions:
  • The area of a circle A is 85π ft2. ∠BAC is a central angle of the circle, and m∠BAC = 36°
    13·1 answer
  • What is the surface area of the cylinder?
    5·1 answer
  • AEFG is located at E (0,0), F (-7, 4), and G (0,8). Which statement correctly classifies AEFG?
    15·1 answer
  • Solve for the right answers
    11·2 answers
  • Sin\theta +cos\theta =1
    8·1 answer
  • Jessica hit a golf ball 150.75 yards. Kayla hit a golf ball 130.25 yards. How much farther did Jessica hit a golf ball?
    11·2 answers
  • Help me find the value of x please? Finding an angle measure for a triangle with an extended side.
    5·1 answer
  • Monica works in a clothing store. Her monthly pay is $800. She also receives 5% commission on all her sales. She had $35,748 in
    12·2 answers
  • Solve for b. Help! Explain steps!
    5·2 answers
  • A radioactive substance decays exponentially. A scientist begins with 190 milligrams of a radioactive
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!