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
Please help!! (I have put a screenshot of the question)
gladu [14]

..........X=15..........

3 0
3 years ago
7 + 4 + -8 + -7 + -5 + 2=?<br><br> Is the answer -7?
balandron [24]

Answer:

Yes

Step-by-step explanation:

4 0
3 years ago
Read 2 more answers
What are the missing operations?
vampirchik [111]
The missing operations in order is division, division, subtraction, addition, addition, and division
8 0
3 years ago
A parking lot has the shape of a parallelogram. The length of two adjacent sides are 70 meters and 100 meters. The angle between
Whitepunk [10]
The answer is 6577.85 m^2
7 0
3 years ago
Please Help Brain list and 25 Points whoever gets it right. You have to have a actual explanation and a real answer. Not just B,
den301095 [7]

Answer: B

Step-by-step explanation:

9/6 divided by 3/2

you flip 3/2 to 2/3 and multiply

9/6 times 2/3 = 1

3 0
3 years ago
Other questions:
  • How many centimeters are in 7 meters? 100cm/1m = /7m
    7·1 answer
  • What is the quotient of 5/12÷3/8
    14·2 answers
  • Marjorie is building a dog run that is 25'8" long and 8'8" wide. How much fencing will she need if the opening is 3'6" wide and
    10·1 answer
  • Carmen has taken out a loan for $800 to buy
    12·2 answers
  • Answers plz I need help really badly
    6·2 answers
  • Which is the same function as −6x+1=y ?
    12·2 answers
  • Plss help asap :) <br><br><br> (if your reading this I hope you have a great day!)
    13·1 answer
  • Write as an addition problem: 22 - (-8)
    9·1 answer
  • I want answer for this one
    9·2 answers
  • What is the value of the expression? 8P3 120 O 20 O 56 6720 O​
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!