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...
-
An experiment results in one of five sample points with the following probabilities: P(E1) = .22, P(E2) = .31,P(E3) = .15, P(E4) = .22, and P(E5) = .1. The following events have been defined: A: {E1,...
-
On July 1, 2013, Katrina purchased tax-exempt bonds (face value of $75,000) for $82,000. The bonds mature in five years, and the annual interest rate is 6%. The market rate of interest is 2%. a. How...
-
Assume that \(30 \%\) of the laser diodes in a batch of 100 meet the minimum power requirements of a specific customer. If a laser diode is selected randomly, that is, each laser diode is equally...
-
As HR manager at Krameria, Inc., you are trying to determine whether there is a useful linear relationship between x, the years of education of a company employee, and y, the employees job...
-
For an option trading in the money, what is the likely impact on e binomial option price as the number of binomial steps is increased?
-
TV Trends to Watch in 2021 In 2021, expect larger and cheaper 4K TVs, a new level of voice control, interaction with other smart products, and mini Led backlights to improve color contrast and...
-
Please analyse and compare the following 3 types of retailers used by Samsung in Canada from a marketing professional perspective: large chain shops such as Future Shop / Best Buy, large merchants...
-
Maple syrup ( = 1300 kg/m 3 , = 0.1 Pas) flows through a pipe of cross-sectional area A = 0.1 m2 . Near the end of the pipe, an angled attachment is glued to the pipe to redirect the flow through an...
-
Assume a price of $ 1 and a contribution margin percentage of 1 5 0 % on cost . Next, calculate ( a ) the variable costs and ( b ) the contribution margin percentage on price.
-
Long - term debt Deferred income tax liabilities Retiree health care benefits Pension liabilities Operating lease liabilities Other long - term liabilities what type of activity is each ?
-
You work in the accounting department at Accountants-R-Us, Inc. and just received the December bank statement. Use the following information to create the bank reconciliation for the month-ended...
-
Daniel and Ashlee are long-term clients of yours, and are getting a divorce. Because of the divorce, their interests will no longer be the same and they are not amicable. Ashlee has said that's he...
-
Comparison of economies to determine greatest potential for profit growth (MUST Include charts with GDP and GDP per capita). You are comparing Ghana and Kenya economies
-
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)
-
Consider the \(\operatorname{ARDL}(p, q)\) equation and the data in the file usmacro. For \(p=2\) and \(q=1\), results from the LM test for serially correlated errors were reported in Table 9.6 for...
-
Consider the data file \(m r o z\) on working wives. Use the 428 observations on married women who participate in the labor force. In this exercise, we examine the effectiveness of a parent's college...
-
Consider the data file \(m r o z\) on working wives. Use the 428 observations on married women who participate in the labor force. In this exercise, we examine the effectiveness of a parent's college...
Study smarter with the SolutionInn App