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, 22.06.2019 19:20
Consider the following code snippet: #ifndef cashregister_h#define cashregister_hconst double max_balance = 6000000.0; class cashregister{public: cashregister(); cashregister(double new_balance); void set_balance(double new_balance); double get_balance() const; private: double balance[12]; }; double get_monthly_balance(cashregister bk, int month); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_balance should be removed since header files should not contain constants.c)the definition of cashregister should be removed since header files should not contain class definitions.d)the body of the get_monthly_balance function should be added to the header file.
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
question
Computers and Technology, 24.06.2019 04:30
Fall protection, confined space entry procedures, controlled noise levels, and protection from chemical hazards are some of the things that contribute to a safe what
Answers: 1
question
Computers and Technology, 24.06.2019 10:20
Identify the publisher in this citation: carter,alan.a guide to entrepreneurship.new york: river’2008.print.
Answers: 3
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, 02.04.2021 01:00
question
Mathematics, 02.04.2021 01:00
Questions on the website: 13722361