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

  • Make sure the number of fat grams and calories is NOT less than 0
  • According to the nutritional formulas, the number of calories cannot exceed fat grams x9. Make sure that the number of calories entered is not greater than fat grams x9.

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:

  • yearModel: the yearModel field is an integer that holds the car's year model.
  • Make: the make field references a string that holds the make of the car.
  • Speed: the speed field is an integer that holds the car's current speed.

In addition, the class should have the following constructors and other methods:

  • Constructor: should accept the car's year model and make as arguments. These values should be assigned to the objects yearmodel and make fields. The constructor should also assign 0 to the speed field.
  • Accessors: design appropriate accessor methods to get the values stored in an object's yearModel, make and speed fields.
  • Accelerate: the accelerate method should add 5 to the speed field each time it is called.
  • Brake: the brake method should subtract 5 from the speed field each time it is called. Next, design a program that creates a car object, and then calls the accelerate method 5 times. After each call to the accelerate method, get the current speed of the car and display it. Then call the brake method 5 times. After each call to the brake method, get the current speed of the car and display it

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

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.