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
Gnesinka [82]
3 years ago
7

: A personal trainer will generate a report of a client’s average weight. The program will

Mathematics
1 answer:
Softa [21]3 years ago
8 0

The program illustrates the use of mathematical operations such as <em>division and addition operations.</em>

The complete program in C++ where comments are used to explain each line is as follows:

#include<iostream>

#include<string>

using namespace std;

int main(){

//This declares name as string

string name, allWeights = " ";

//This gets input for name

cin>>name;

//This declares weight as integer and also initializes the total weight to 0

int weight, total = 0;

//The following iteration gets input for weight

for(int i = 0; i<4;i++){

   cin>>weight;

   //This calculates the total weight

   total+=weight;

//This records all weights

   allWeights+= " "+to_string(weight);

}

//This prints the client's name

cout<<"Name: "<<name<<endl;

//This prints the all recorded weights

cout<<"Weights:"<<allWeights<<endl;

//This prints the client's average weight

cout<<"Average weight: "<<total/4;

return 0;

}

At the end of the program, the client's name, all input weights and the average weights are displayed

See attachment for sample run

Read more about similar programs at:

brainly.com/question/13439071

You might be interested in
ANSWER IF YOU KNOW!!!!! THANKS
Ad libitum [116K]

Answer:

The third graph.

Step-by-step explanation:

The equations for the lines will be

P(x) = 2x-4

l(x) = -2x-4

When x = 0 both of these functions equal -4. The only graph where this happens is the third one.

You can check this by looking at the slopes and plugging in points.

6 0
3 years ago
Read 2 more answers
Whαt ís thє vαluє σf х ?<br><br><img src="https://tex.z-dn.net/?f=x%20%7B%7D%5E%7B2%7D%20%20%20-%20%20%5C%3A%2025%20%3D%20144" i
Zigmanuir [339]

Answer:

hey mate!!

Step-by-step explanation:

x

2

−25=144

X^2=144+25

x^2=169

x=√169

x=13

Sorry mate check out the answer !

7 0
3 years ago
Read 2 more answers
Use pascal's triangle to expand the binomial (x+3)^4
ratelena [41]

Answer: the answer is in the photo pls check this out and hope this helps can u give me brainliest

Step-by-step explanation:

6 0
3 years ago
Quasim ordered 32 cases with 28 cans of fruit in each case. He also received 24 cases with 13 large cans of fruit in each case.
klasskru [66]
I am assuming the 32 cases contain the small cans...

32 cases...with 28 small cans of fruit in each case..
32 * 28 = 896 small cans of fruit in total

24 cases...with 13 large cans of fruit in each case...
24 * 13 = 312 large cans of fruit in total

so there are (896 - 312) = 584 more small cans then large cans <==
8 0
3 years ago
(20 points) Need help ASAP!!
ziro4ka [17]
1) 7; 5
2) 5; 25
3) 8; 15
5 0
3 years ago
Other questions:
  • Please someone help
    13·1 answer
  • A cylinder and a cone have the same radius and height. How many times greater is the volume of the cylinder than the volume of t
    13·1 answer
  • Plz help me I cant figure this out at all thank you
    7·2 answers
  • A radio disc jockey has 8 songs on this upcoming hour's playlist: 3 are rock songs, 2 are reggae songs, and 3 are country songs.
    13·2 answers
  • Please give me the answer to the problem.
    8·2 answers
  • What is the zero of a function?
    15·1 answer
  • To train for a race, Scott's want to run 20 miles this week . he runs 1/4 of the miles on Monday. If he runs 2 miles on Tuesday
    12·1 answer
  • Acellus
    15·1 answer
  • Find f(g(3)). PLEASE HELP me asap!!!!! thank you so so much!!!! *will give brainliest*
    12·1 answer
  • A college counselor would like to select an SRS of all of the 525 students in the college. She uses the numbers from 001 to 525
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!