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
The ocean floor is growing by 8 centimeters every five years. What is the speed of the ocean floor's growth?
Karolina [17]
1.6 cm/year
have a great day
5 0
3 years ago
Classify the triangles the choices are equilateral,isosceles, scalene and right please help and be quick thanks
Digiron [165]

Answer:

Step-by-step explanation:

some off this is a tranggle

3 0
2 years ago
Pleasee help me with this problemm
iragen [17]
(_/18+2_/3)^(2

=(3_/2^(2 + (2)(2_/3)(3_/2) + 2_/3^(2)

=18+ 12_/6 +12

=30+12_/6

hope this helps

3 0
3 years ago
Read 2 more answers
PLEASE HELP ILL GIVE 50 POINTS AND I WILL MARK BRAINLIEST
kherson [118]
See attached picture for the answers:

4 0
2 years ago
Read 2 more answers
You went to the mall with $52.50. You bought three shirts that each cost x
yanalaym [24]
52.50-3x=Remainder
Explanation:
52.50 starting amount
3x (3 shirts) (1 shirt=x)
52.50-3 shirts=remainder
7 0
3 years ago
Other questions:
  • Which of the following is equivalent to −3(2n)2?
    6·1 answer
  • What is the answer<br><img src="https://tex.z-dn.net/?f=%20%7B5%7D%5E%7B%20-%207%7D%20%20%5Ctimes%20%20%7B5%7D%5E%7B12%7D%20%20%
    5·1 answer
  • Anyone know the answer
    8·2 answers
  • Ashley is digging for rocks at a geological site. She has 140 meters of rope and 4 stakes to mark off a rectangular area. Which
    14·2 answers
  • Sweaters cost $39 each. This is $15 more than the price of a cap. Over the season, 725 caps were sold. What was the total sales
    8·1 answer
  • Consider the graphs shown below. Look at each trend line.
    14·1 answer
  • Can you help me plz and quick!
    8·1 answer
  • 6 of 12
    12·1 answer
  • Answer question number 5 only.
    9·1 answer
  • Find the value of x and y that make the quadrilateral
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!