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

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

Mathematics
1 answer:
Softa [21]2 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
What is the value in the figure above?​
Elan Coil [88]
Answer: i can’t read it could try upload it again

Explanation: Henlo :3
6 0
3 years ago
Read 2 more answers
Which ordered pair is a solution of the equations y=-5/4x-2
sashaice [31]
The answer is C. That would be ur answer
5 0
2 years ago
What are the apparent zeros of the function graphed above. (-0.7, -2,7)
castortr0y [4]

Answer:

x ∈ {-2, 1, 4}

Step-by-step explanation:

The graph shows y = 0 when x = -2 or 1 or 4. Hence these values of x are the zeros of the function.

3 0
3 years ago
Read 2 more answers
Kate has gone up to the chalkboard to do math problems 5 more times than Andre. Kate has gone up 11 times. Which equation repres
balandron [24]
 B, because it says she has gone up 5 times Andre (a).
8 0
3 years ago
Read 2 more answers
Emma needs to divide 7 by 1/2. Which strategy can Emma use to get the answer?
Juliette [100K]

Answer:

14

Step-by-step explanation:

Convert the fraction into a decimal

1/2 = 0.5

Divide

7/0.5 = 14

7 0
3 years ago
Other questions:
  • Help is needed quickly.
    5·1 answer
  • Please help me ASAP!!!
    10·1 answer
  • How do you solve equations and check for solutions
    5·2 answers
  • УА
    10·1 answer
  • Umm yeah,. i need help umm take ur time.
    5·1 answer
  • Alicia is building a gazebo and want to brace each corner by placing 14 inch wooden bracket
    7·1 answer
  • Write an equation in slope-intercept form for the line with slope -2/5 and y intercept 5.
    13·1 answer
  • Assuming there are no reflections or dilations explain how you would write the equation of the function whose graph is sketched
    12·1 answer
  • Can you pls help me thank you have a good day
    15·2 answers
  • Please help me on my math problems screenshots are below
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!