Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Do both in Python Please Program 2: Design (Pseudocode) and implement (Source Code) a program that asks the user for their height (in inches), weight

Do both in Python Please

Program 2: Design (Pseudocode) and implement (Source Code) a program that asks the user for their height (in inches), weight (in pounds), age and gender. Use loops to validate user input and to continue running for a new user until a sentinel value is entered. Ask them to select their approximate level of exercise each week from the options below, then determine and print their allowed daily caloric intake using their BMR:

Female BMR = 655+(4.35 * weight) + (4.7 * height) - (4.7 * userAge );

Male BMR = 66+(6.23 * weight) + (12.7 * height) - (6.8 * userAge);

1. You don't exercise: BMR x 1.2 = Calories Allowed

2. You engage in light exercise one to three days a week: BMR x 1.375

3. You exercise moderately three to five times a week: BMR x 1.55

4. You exercise intensely six to seven days a week: BMR x 1.725

5. You exercise intensely six to seven days a week and have a physically active job: BMR x 1.9

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

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions