Question: PLEASE DO THIS IN PYTHON!! 1) Program 1: Design (pseudocode) and implement (source code) a program (name it SandClock) that uses nested loops to print

PLEASE DO THIS IN PYTHON!!

1) Program 1: Design (pseudocode) and implement (source code) a program (name it SandClock) that uses nested loops to print out the following shape (sand clock). Note that the full shape can be divided into 2 shapes (upper and lower halves) that are printed after each other using their own separate nested loops. Document your code properly.

*********

*******

*****

***

*

***

*****

*******

*********

2.) 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

Sample Run 1: Female, 63, 120 lbs, age 32, BMR = 1322.7, Exercise 3, DCA: 2050.18

Sample Run 2: Male, 72, 200 lbs, age 32, BMR = 2008.8, Exercise 4, DCA: 3465.18

DCA = Daily Caloric Allowance

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!