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
A circular plate has circumference of 26.4 inches. What is the area of this​ plate? Use 3.14 for pi.
mafiozo [28]
I believe the answer is 55.49 inches
using the equation C^2/(4*3.14)
3 0
3 years ago
(-8)+8-(-7)<br><br> answer? please help
Dima020 [189]
-8 and +8 equal 0 since they cancel out. It's basically 8-8. So that leaves you with 0-(-7). The two negatives make a positive, now you're left with 0+7=7. Your answer is 7. Hope this helps :)
7 0
3 years ago
Read 2 more answers
Does the sides 14, 3, 9 make a triangle?​
lakkis [162]

Answer: No

Step-by-step explanation: The way that you know is you put the #s from least to greatest 3,9,14 then add the 2 smallest #s and if it is greater than the biggest #it does make a triangle so it would be 12<14 and that is false .

3 0
2 years ago
Which number is IRRATIONAL?
Irina18 [472]

Answer:

√27

Step-by-step explanation:

√9, √36, and √81 are rational

4 0
3 years ago
In ABC, AC is extended through point C to point D,<br> m&lt; BCD = (9x - 1), m m
omeli [17]

Answer:

cx

Step-by-step explanation:

4 0
2 years ago
Other questions:
  • Chapter 11 assesment guide 5th grade
    7·2 answers
  • You and two friends are playing basketball. You make 7 out of 15 shots. Your first friend makes 6 out of 10 shots and your secon
    7·1 answer
  • 6th grade math, help me please.
    5·1 answer
  • Find the probability of answering the first three multiple choice questions correctly
    11·1 answer
  • How do you write the set notation for the graph below?
    6·1 answer
  • Simplify -6x(9-12) ??
    5·2 answers
  • An object travels around a circle of radius r with constant speed. If s is the distance traveled in time t around the circle and
    8·1 answer
  • I need help. PQRS is an isosceles trapezoid. Enter coordinates for point R.
    5·1 answer
  • Please help, this makes no sense to me
    8·1 answer
  • Bonsoir pour vais vous m'aider svp développer et réduire l'expression D=(2x+3)²-(x+4)² et factoriser D Svp aider moi
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!