1. Weight Gain(use a for-loop) If a person increases their calorie intake by 200 calories a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
WeightGainpy CAUsersHPAppDatelLocalProgramsPythonPython3832WeightGainpy 386 File ... View the full answer
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date:
Students also viewed these accounting questions
-
How much must you deposit at the end of each year in an account that pays a nominal annual rate of 20 percent, if at the end of five years you want $10,000 in the account?
-
How much must you deposit at the end of each quarter in an account that pays a nominal interest rate of 20 percent, compounded quarterly, if at the end of five years you want $10,000 in the account?...
-
How much mass should be at the end of a spring (k = 100 N/m) in order to have a period of 2.0 s?
-
Corning-Howell reported taxable income in 2013 of $120 million. At December 31, 2013, the reported amount of some assets and liabilities in the financial statements differed from their tax bases as...
-
Examine the cash flow performance measures in requirement 2 of the Review Problem in this chapter. Discuss the meaning of the cash flow ratios and free cash flow.
-
How are information systems used to run, grow, and transform a business?
-
The following note transactions occurred during the year for Towne Company: Nov. 25 Towne issued a 90 -day, nine percent note payable for \(\$ 8,000\) to Hyatt Company for merchandise. Dec. 7 Towne...
-
Details about a companys liabilities appear in a number of places in the annual report. Use Amazon.coms financial statements, including Notes 1 and 5, to answer the following questions. Amazons...
-
Prepare a master production schedule for industrial pumps in the manner of the following table. Use the MPS rule to "schedule production when the projected on-hand inventory would be less than 10...
-
Janice Morgan, age 24, is single and has no dependents. She is a freelance writer. In January 2021, Janice opened her own office located at 2751 Waldham Road, Pleasant Hill, NM 88135. She called her...
-
In your first posted comment, consider one or more of the following issues: Identify and explain the characteristics of the "perfectly competition" market structure. Are agricultural markets...
-
The Addition to Harvey Hall at Berkshire School of Business In an effort to improve the level of quality of its classroom instruction, the Berkshire School of Business recently decided to reduce the...
-
Which one of the following actions is not done under formal control? (a) Create and terminate the rules or standards created (b) Decide which technical tools to be deployed (c) Establish...
-
Which topology requires a multipoint connection? a) Ring b) Bus c) Star d) Mesh
-
You are a new supervisor in the Environmental Services Department. You have 20 employees that report to you. They range in age from 17 (high school student working part-time after school) to 66...
-
2. The reactant (1-butanol) has a low solubility in water at room temperature (9.1 mL of 1- butanol dissolves in 100 mL of water). During this lab, 13.5 mL of 1-butanol readily dissolved in 40 mL of...
-
E WE b) 1b) Find the resultant of two forces equal to 50N and 30N acting at an angle of 60 to each other? 2) A tower guy wire is anchored by means of a bolt at A. The tension in the wire is 2500N,...
-
Grace is training to be an airplane pilot and must complete five days of flying training in October with at least one day of rest between trainings. How many ways can Grace schedule her flying...
-
A school has 100 lockers and 100 students. All lockers are closed on the first day of school. As the students enter, the first student, denoted S1, opens every locker. Then the second student, S2,...
-
Modify Listing 28.10, ConnectedCircles.java, to display sets of connected circles in different colors. That is, if two circles are connected, they are displayed using the same color; otherwise, they...
-
Write a program that draws a cylinder, as shown in Figure 14.45b. You can use the following method to set the dashed stroke for an arc: (c)
-
Where do the following accounts (and their balances) appear in the balance sheet? a. Dividends Payable-Common Stock b. Stock Dividend Distributable
-
What are the different sources of paid-in capital?
-
Bleaker Company declares and pays its annual dividend near the end of its fiscal year. For the current year, Bleaker's dividend payout ratio was 40 percent, its earnings per common share were \(\$...
Study smarter with the SolutionInn App