Project 1: A personal trainer asks you to create a program to calculate and display a clients' body mass index (BMI). Use the information in Exercise 6 on page 121 to create this program by 1. Creating the pseudocode for this program 2. Creating a flowchart for this program Hint: Use RAPTOR, Visio, or Microsoft Word's Drawing toolbar to create the flowchart
Design a module program that calculates and displays a person's body mass index (BMI). The BMI is often used to determine whether a person with a sedentary life style is overweight or underweight for his or her height. A person's BMI is calculated with the following formula: BMI = Weight x 703/Height^2
Project 2: A man named John Raymond is so pleased with the program you created for his clients that he refers you to his coworker, a nutritionist in the same fitness facility. The nutritionist would like you to create a program that calculates fat grams and calories. Read Programming Exercise 3 on page 281 for the information for your program; then complete the following two steps: 1. Create the pseudocode for this program. 2. Create a flowchart for this program.
Design a program that asks for the number of fat grams and calories in a food item. Validate the input as follows
Once correct data has been entered, the program should calculate and display the percentage of calories that come from fat. Use the formula below:
Percentage of calories from fat = (fat grams x 9) / calories
Project 3: You've been asked by a science museum to create an application that displays information about planets to visitors. When users select a planet, they should be able to read information about the selected planet. To complete this project, 1. Turn to page 475 of your textbook and read Programming Exercise 4Astronomy Helper. 2. Create an application with the information given in your textbook. Page 475 Exercise #4 Astronomy Helper: Create an application that displays the following menu:
Select a planet
1. Mercury
2. Venus
3. Earth
4. Mars
5. Exit the program
Enter your selection
When the user selects a planet from the menu, the program should display data about the planet's average distance from the sun, the planet's mass, and the planet's surface temperature. Use the following data in your program:
Mercury:
Average distance from sun- 57.9 million kilometers
Surface temperature- -173 to 430 degrees celsius
Earth:
Average distance from sun- 149.6 million kilometers
Mass- 5.967 X 10^24kg
Surface temperature: -50 to 50 degrees celsius
VENUS:
Avg. distance from sun: 108.2 million kilometers
Mass- 4.87 x 10^24kg
MARS:
Avg. distance from sun: 227.9 million kilometers
Mass- 0.6424 x 10^24kg
Surface temp -140 to 20 degrees celsius
Project 4: You've been asked to create a program on cars. 1. Turn to page 565 of your textbook and read Programming Exercise 2Car Class. 2. Create a program with the information given in your textbook on page 565
Page 565 Exercise #2 Car Class: Design a class named car that has the following fields:
In addition, the class should have the following constructors and other methods:
Project 5: Part 1- Create a program that calculates the number of calories burned while running on a treadmill. An individual running on a treadmill burns 3.9 calories per minute Design a program that uses a loop to display the number of calories burned after running 10, 15,20,25,and 30 minutes.
To complete part 1:
1. Create a flowchart
2. Create pseudocode
Part 2 - The Springfork Amateur Golf Club has a tournament every weekend. The club president has asked you to design 2 programs. Create a program for a Golf club that:
1. Reads each player's name and gold score as keyboard inputs, and saves these records as golf.dat
2. Reads the golf.dat records and displays them
Create a flowchart and pseudocode