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
Jose earned 45$ working at his job for 5 hours . how much would he earn for 7 hours
telo118 [61]
63$

five hours = 45$
1 hour = 9$
7 hours = 63$
3 0
3 years ago
Read 2 more answers
Ben Spender writes a $60 check which is retumed by his bank with additional charges. The company he wrote the
pshichka [43]

Answer:

$80

Step-by-step explanation:

4 0
3 years ago
Read 2 more answers
How to find the area of a triangle
polet [3.4K]

Answer:

1/2 x b x h

b = base

h = height

Hope this helps

Thank you

6 0
3 years ago
Read 2 more answers
Each dance class is hour. It takes a student 7 hours to learn a dance routine. Which
Sindrei [870]
Option 2 is your answer
7 0
3 years ago
From a group of 15 men and 12 women, how many ways can you select a group of 2?<br> Answer:
Anton [14]

The total number of ways this can be done together is 105 × 66 = 6930

This is a combination question question it has to do with selection.

In order to group 2 men from 15 men, this can be expressed using the combination formula as shown;

15C2 = 15!/(15-2)!2!

15C2 = 15!/13!2!

15C2 = 15×14/2

15C2 = 105 ways

Similarly in order to group 2 women from 12 men, this can be expressed using the combination formula as shown;

12C2 = 12!/(12-2)!2!

12C2 = 12!/10!2!

12C2 = 12×11/2

12C2 = 66 ways

The total number of ways this can be done together is 105 × 66 = 6930

Learn more about combination here: brainly.com/question/14492965

4 0
2 years ago
Other questions:
  • How many 4-ounce bags of peanuts can be filled from a 5-pound bag of peanuts?
    5·2 answers
  • Find the value of x that makes lines u and v parallel.
    5·2 answers
  • What is the product in simplest form? State any restrictions on the variable.
    5·1 answer
  • The volume of a cone of radius r and height h is V=1/3πr^2 h.Solve for r.Please help me anyone!!!! I need to know the answer now
    13·1 answer
  • Find the first six terms of the sequence. a1 = -8, an = 5 • an-1
    8·1 answer
  • PLEASE ANSWER THIS I DIDN'T GET ANYTHING DUE IN 2 HOURS!!!!!
    6·2 answers
  • For each part below, use the figure to fill in the blank.
    12·1 answer
  • What are the rules to remember while working with Proportional Relationships?
    12·1 answer
  • Which of the following are graphs of functions?​
    12·1 answer
  • Solve the following problems mentally and match it to its corresponding solution.
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!