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
Round to the nearest thousandth 452.0298
shepuryov [24]

rounded to the nearest thousandth: 452.030

5 0
2 years ago
Help mewa plzzzzzzzz
Sophie [7]

Answer:

It has the same shape and angels as a trapezoid therefor it is a trapezoid

Step-by-step explanation: If u dont believe me, look for a pic of a trapezoid on google

8 0
3 years ago
Read 2 more answers
Find the domain of the function.
bonufazy [111]

x + 6 >= 0

x >= -6

Choice B is the answer.

Do you know why?

8 0
3 years ago
Not sure how to go at this at all, please help.
ss7ja [257]
Here ya go answer down below

8 0
2 years ago
Read 2 more answers
(07.01 MC) Find the cosine ratio of angle Θ. Hint: Use the slash symbol ( / ) to represent the fraction bar, and enter the fract
Ludmilka [50]

Answer:

3/5

Step-by-step explanation:

4 0
3 years ago
Read 2 more answers
Other questions:
  • How to solve <br> -8x-5+3x=7+4x-9
    11·1 answer
  • A handyman is tiling a bathroom l. He needs 34 rows of 18 tiles to cover the floor. How many total tiles does he need to cover t
    11·1 answer
  • Question 15 please<br><br> Please show work and Thank you for your time
    11·1 answer
  • Which points are on the graph of the function rule ƒ(x) = 10 – 4x?
    5·1 answer
  • Determine whether the geometric series 19.2 + 9.6 + 4.8 + ... converges or diverges, and identify the sum if it exists.​
    6·1 answer
  • A snack cart sells lemonade for $2 and hot dogs for $5. The vendor sold 86 items today for a total of $330. Which equation is tr
    15·2 answers
  • If 630 sweets were distributed among Ben,
    8·1 answer
  • Joanna created a rectangular shaped vegetable garden and needs to put down fertilizer to cover the space. If the garden has a ba
    9·1 answer
  • There is no question pt7
    12·2 answers
  • Please help me asap<br> I will give you 50 points
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!