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
Can someone please answer. There is one problem. There's a picture. Thank you!
lidiya [134]
The second choice is the correct one.
3 0
3 years ago
Read 2 more answers
Algebra 1: Which of the following is the correct slope between (1, -1) and (2, 3)?
blsea [12.9K]
(2,3) I think. I'm not in Algebra 1, so yeah
7 0
2 years ago
Read 2 more answers
The table below shows the amount of time a light stays green, red, and yellow (for one cycle) during the day and during the nigh
Lady_Fox [76]

Answer:i am sorry bud i have nio ideavjkfdav

Step-by-step explanation:fdanmfva e.dn f,da/

6 0
2 years ago
Javier throws two dice and does not care about the order but only that a 6 and a 5 fall, what is the probability that this will
FinnZ [79.3K]
Not very much because things don't always happen the way we want them too
7 0
3 years ago
the price of a pair of headphones at store a is 3/4 the price at store a the price at store a is 89.25 find how much you save by
melomori [17]

Answer:22.31

Step-by-step explanation:

6 0
3 years ago
Other questions:
  • Consider this scatter plot.
    7·2 answers
  • Please please please help
    11·1 answer
  • A scale on a blue print drawing of a house shows that 10 centimeters represents 2 meters. What number of actual meters are repre
    8·1 answer
  • There are 5 red marbles, 15 blue marbles, and 5 green marbles in a bag. You reach in and randomly draw a marble, replace it, and
    14·1 answer
  • Ellen takes a multiple choice quiz that has 5 questions with 4 answers choices for Each question. What is the probability that s
    13·1 answer
  • In 2000 the population of a country reached 1 ​billion, and in 2025 it is projected to be 1.2 billion. ​(a) Find values for C an
    6·1 answer
  • I need help with this
    6·1 answer
  • Beth got a job painting dorm rooms at her college. At top speed, she could paint 5 identical rooms during one 6-hour shift. How
    11·1 answer
  • Which of the following ordered pairs are a solution for the equation y=2x−5 (2, 0)(-1, -7)(-9, -2)(1, 3)
    6·1 answer
  • The two tables give the number of pints of blue and yellow that are used to make different amounts of two shades of green dye.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!