Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Weight Gain(use a for-loop) If a person increases their calorie intake by 200 calories a day, they typically gain about 2 pounds a

  


1. Weight Gain(use a for-loop) If a person increases their calorie intake by 200 calories a day, they typically gain about 2 pounds a month. Write a program (WeightGain py) that lets the user enter their starting weight, then creates and displays a table showing what their expected weight will be at the end of each month for the next 6 months if they eat too much. Example: Here is how the program runs when the user enters 100 as their starting weight. Enter your weight (in lbs) 100 Your weight after month 1 is 102.0 lbs Your weight after month 2 is 104.0 lbs Your weight after month 3 is 106.0 lbs Your weight after month 4 is 108.0 lbs Your weight after month 5 is 110.0 lbs Your weight after month 6 is 112.0 lbs Submit WeightGain.py.

Step by Step Solution

3.41 Rating (145 Votes )

There are 3 Steps involved in it

Step: 1

WeightGainpy CAUsersHPAppDatelLocalProgramsPythonPython3832WeightGainpy 386 File ... 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

Introduction to Java Programming, Comprehensive Version

Authors: Y. Daniel Liang

10th Edition

133761312, 978-0133761313

More Books

Students also viewed these Accounting questions

Question

3. How do epinephrine and cortisol enhance memory storage?

Answered: 1 week ago