Skill set for this LAB:
Problem 1 (45 points): Write a Python program that promts the user to enter one number that indicates the radius of the circle. The program will calculate and print the diameter (2*radius) , circumference (2*pi*radius) and area (pi*radius*radius) of the circle. Use the value 3.14159 for PI. Write separate function for each task. Main function will be responsible for reading the input value and using functions your wrote to calculate diameter, circumference, and area of the circle.
Problem 2 (40 points): Modification of program 6 on page 115. Write a function which calculates BODY MASS INDEX(BMI) of the person using the formula in the book on page 115 in the programming exercise 6. This function has two formal parameters, weight and height, and prints the BMI index. Write a Python program that prompts the user to enter weight and height of three different people and calculates BODY MASS INDEX(BMI) for each person using the function you wrote.
Problem 3 (10 points) Modification of Program 7 p.115. Write a function that has two formal parameters, grams and rate, and prints the number of calories. Write a program that calculates calories from fat and calories from carbs for two people, based on the number of the fat grams and carb grams each person provided.
Problem 4 (5 points) : See example In the Spotlight: future_value.py on pp. 62-63. Write a function that calculates the amount of money you have to deposit today in order to receive specific future value, taking in account annual interest rate and number of years money will appreciate. Write main function that reads required input and uses the function to calculate the amount of money you have to deposit today. Use the formula on p.62