Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me check the code walled on o Part B: Weight-loss table According to Alberta Health Services, the Nutrition Guideline: Adult Weight Management suggest

Please help me check the code image text in transcribed
image text in transcribed
walled on o Part B: Weight-loss table According to Alberta Health Services, the Nutrition Guideline: Adult Weight Management suggest one way to target a 5% to 10% weight loss over six months is to reduce weight about around 0.5 kg to 1 kg per week. One way to achieve this weight loss rate is to eat 500 to 1000 calories less than current intake. Also assumed here is that the person seeking to lose weight wil modify their physkal activity and also their behavior (Here is a link to the posted Nutrition Guideline: https /RAAG10 In this part you will obtain from the user a value for their current weight (provided in kilograms) if you then assume they will eat less as described above, and that their weight loss in in the middle of the range le 0.75 kg lost per week, then print a chart showing the projected weight at each week for 24 weeks. The table should we properly formatted (le, column aligned, therefore make good use of the formatl) function. And remember what you have been taught in class about magic numberst) And you can assume that any initial weight provided by the user will never be negative Below is a transcript of a session where the given starting weight is 95 kilograms What is the starting weight (in kg) 95 Week Weight (kg) 94.25 93.se 92.75 92.00 91.25 90.50 39.75 19.00 38.25 87.5e 36.75 36.00 .25 34. Se 3.00 $2.25 11.se 0.75 0.00 79.25 78.50 UU T Run C Markdown In [6]: Put in solution to Part B here. Python 3 O print("week It weight") print("."*15) days - 25 weight - weight - int(input("Enter a the starting weight(in kg, not negative))) for days in range(1,25): weight = weight - 0.75 print(days," ", format(weight, .2')) week weight Enter a the starting weight(in kg, not negative)95 94.25 93.se 92.75 92.00 91.25 ge.se 89.75 89.00 88.25 87.se 86.75 12 86.ae 85.25 84. se 83.75 83.ee 82.25 18 81.50 89.75 se.ee 79.25 78.50 77.75 77.00 Marks Part A is worth 5 marks

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

Privacy In Statistical Databases International Conference Psd 2022 Paris France September 21 23 2022 Proceedings Lncs 13463

Authors: Josep Domingo-Ferrer ,Maryline Laurent

1st Edition

3031139445, 978-3031139444

More Books

Students also viewed these Databases questions

Question

What is focal length? Explain with a diagram and give an example.

Answered: 1 week ago

Question

What is physics and how does it apply in daily life?

Answered: 1 week ago