subject

URGENT HELP PLEASE Part II: Coding (50 points)

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: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:00
Ineed a good science fair name i’m doing a homemade water filter and i have no idea what the title should be plz
Answers: 1
question
Computers and Technology, 24.06.2019 11:30
What does the https: // mean when you type in a website
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
How can we take picture in this app
Answers: 1
question
Computers and Technology, 24.06.2019 18:30
What are the benefits to using presentations to organize and deliver information in the workplace? they add visual appeal. they are easy to update. they ensure accuracy. they can be created quickly. the work can't be lost.
Answers: 1
You know the right answer?
URGENT HELP PLEASE Part II: Coding (50 points)

You own a gym and need to write a program...
Questions
question
Mathematics, 03.07.2020 17:01
question
English, 03.07.2020 17:01
question
Mathematics, 03.07.2020 17:01
question
Mathematics, 03.07.2020 17:01
question
Biology, 03.07.2020 17:01
Questions on the website: 13722361