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 state park charges $6.00 entry fee plus $7.50 per night of camping. Write an algebra expression for the cost in dollars of ent
Murrr4er [49]

Answer:

C=$7.50n + $6

Step-by-step explanation:

6 0
3 years ago
Please help what is 500 + 1500 ?
Sedbober [7]
2000 is the correct answer hope this helps! :D
3 0
3 years ago
Read 2 more answers
How much water conditioner for 2.5 gallon tank?
vivado [14]
If i'm correct you should add 0.5 mL to your 1 gallon tank, and I would say about 1.25 mL to your 2.5 gallon. It will not be extreme if you end up putting a little more in than you are supposed to. I'm not 100% because i haven't slept so my brain is being slow.
8 0
3 years ago
Help with problems 1 &amp; 3
vlabodo [156]
One side of the rectangle is x=2, the other side is 2x-5
Add up all the four sides: (x+2) +(x+2)+(2x-5)+(2x-5)=54
6x-6=54
x=10

#3: suppose the first integer is x, then the second one is x+2
x(x+2)=255
x^2 +2x -255 =0
factor the quadratic equation: (x+17)(x-15)=0 
x=-17, which is impossible, or x=15
so the two positive integers are 15 and 17


5 0
3 years ago
Help me with this question
kondaur [170]

Answer:

37.68

Step-by-step explanation:

Circumference = Diameter x pi

Diameter = 12 feet

12 x 3.14 = 37.68

The circumference of the pool is 37.68 feet.

7 0
3 years ago
Other questions:
  • 6 2/3 divided by 1/5
    6·2 answers
  • PLEASE HELP ASAP!!! I NEED CORRECT ANSWERS ONLY PLEASE!!!
    12·2 answers
  • Find the coordinates of point B along a directed line segment from A(3,4) and C(3,9) so that the ratio o
    10·1 answer
  • The ratio of plates to napkins is 3:18. write the ratio in the simplest form
    15·1 answer
  • Y'ALL PLEASE HELP ME!! 50 PTS AND BRAINLIEST!!!!
    6·2 answers
  • Calvin found census data for the population of Idaho from 1870 through 2000. He made the chart and scatter plot using this
    6·2 answers
  • UPLOAD compte
    9·1 answer
  • How many ounces of flour would you need for 9 ounces of milk?
    7·2 answers
  • Mrs. Sampson is reviewing her customers' credit card balances in order to create a special mailing list. For the mailing list, s
    10·2 answers
  • Pls help!!!!!!!
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!