Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 lIbs 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: 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? 3 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started