Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

=+ Are they breakable for any reason?

Answered: 1 week ago

Question

=+When and under what circumstances are contracts renegotiated?

Answered: 1 week ago