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
3-(6x-5)+2= -5(6x+2)<br><br> Solve for x
WARRIOR [948]

Answer:

x

=

−

v

3

24

−

17

24

Step-by-step explanation:

4 0
3 years ago
Convert pounds to ounces<br><br> 12.6 pounds
Lilit [14]
12.6 pounds=201.6 ounces
5 0
4 years ago
Read 2 more answers
What is 1,200 in a fraction
Mekhanik [1.2K]
1,200/1,200

Hope this helps!
6 0
4 years ago
Read 2 more answers
This diagram of airport runway intersections shows two parallel runways. A taxi way crosses both runways. How are 6 and 2 relate
balu736 [363]
Answer: A) Corresponding Angles

Refer to the diagram below.
Two angles are corresponding to each other when they are on the same line that crosses two parallel lines, one angle is inside the parallel lines, the other is on the outside.

5 0
3 years ago
PLEASE PLEASE HELP!!!! WILL GIVE BRAINLIEST!Which system of inequalities is represented by the graph?
Darya [45]

Answer:

I'm sorry I don't have the answer but I'm sure someone will help you

Step-by-step explanation:

im really sorry

5 1
2 years ago
Read 2 more answers
Other questions:
  • Use the place-valué charro to quite a Numbers in the table that is 1/10 of given Number?
    15·1 answer
  • 25. Bill bought a shirt for $35.80 plus he paid an additional 7% in sales tax. What was the final cost.
    5·1 answer
  • Which of the following is an example of a measurement of acceleration?
    15·1 answer
  • Match each quadratic equation with its solution set.
    12·2 answers
  • For brainiest:):):):):):):)
    9·2 answers
  • Find the area of the irregular figure. Round to the nearest hundredth.
    11·2 answers
  • Who has a pokémon profile and would like to talk?
    15·2 answers
  • Five snails are having a race. The snail's speeds are given in the table. Which two snails are going the same rate of speed?
    9·1 answer
  • Find the remainder when you divide (−7) by 90.
    13·1 answer
  • Geometry <br> help please
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!