subject

URGENT HELP PLEASE Part II: Coding (50 points)
In C++

You own a gym and need to write a program that inputs the name of a gym member, their original weight in lbs before joining the gym, the number of pounds he or she lost, and the % of total weight that was lost (loss/original weight)*100. The program should then output that member name, the percentage of loss of weight/original weight and his or her current weight. Make sure the output shows decimal values. Here is some sample output. User input is shown in bold. Make sure the user inputs the name (Jane, Dennis, Harry), the weight and the pounds lost in your runs. Do not have the program output the names after the question. Use cin! Pay attention to numeric format! Upload code and results to Test #1 submission link.

What is the member’s name? Jane

How much did you weigh? 180

How many pounds have you lost? 20

The member Jane has lost 11.10 % of weight and now weighs 160 pounds.

Program terminates, and user runs it again

What is the member’s name? Dennis

How much did you weigh? 290

How many pounds have you lost? 38

The member Dennis has lost 13.10 % of weight and now weighs 252 pounds.

Program terminates, and user runs it again

What is the member’s name? Harry

How much did you weigh? 185.7

How many pounds have you lost? 15.4

The member Jane has lost 8.29 % of weight and now weighs 170 pounds.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:30
Three out of five seniors remain undecided about a college major at the end of their senior year.
Answers: 3
question
Computers and Technology, 23.06.2019 08:00
The managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an .
Answers: 3
question
Computers and Technology, 23.06.2019 15:30
The processing of data in a computer involves the interplay between its various hardware components.
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
Scientists have changed the model of the atom as they have gathered new evidence. one of the atomic models is shown below. what experimental evidence led to the development of this atomic model from the one before it? a few of the positive particles aimed at a gold foil seemed to bounce back. the colors of light emitted from heated atoms had very specific energies. experiments with water vapor showed that elements combine in specific proportions. cathode rays were bent in the same way whenever a magnet was brought near them.
Answers: 2
You know the right answer?
URGENT HELP PLEASE Part II: Coding (50 points)
In C++

You own a gym and need to wri...
Questions
question
Mathematics, 11.02.2021 23:50
question
Mathematics, 11.02.2021 23:50
question
Mathematics, 11.02.2021 23:50
question
English, 11.02.2021 23:50
question
Mathematics, 11.02.2021 23:50
Questions on the website: 13722359