# Get Solved 418827,418828,418829,418830,418806

\$3.99

Category:

## Get Solved 418827 418828 418829 418830 418806

PENN FOSTER 41882700
A personal trainer asks you to create a program to calculate and displays the client’s body mass index (BMI). Use the information in Exercise 6 on page 118 to create this program by.
1. creating the pseudocode for this program.
2. creating the flowchart for this program.

Page 118
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 lifestyle is overweight or underweight for his or her height. A person’s BMI is calculated with the following formula:

BMI = Weight x 703/height2

where weight is measured in pounds and height is measured in inches. The program
should display a message indicating whether the person has optimal weight, is underweight,
or is overweight. A sedentary person s weight is considered to be optimal if his
or her BMI is between 18.5 and 25. If the BMI is less than 18.5, the person is considered
to be underweight. If the BMI value is greater than 25, the person is considered
to be overweight.

PENN FOSTER 41882800
John Raymond was 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. ReadProgramming Exercise 3 on page 279 for the information for your program, then

1. Create the pseudocode for this program.

2. Create a flowchart for this program

Fat Gram Calculator

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 nutritional formulas, the number of calories cannot exceed fat grams X 9. Make sure that the number of calories entered is not greater than fat grams x 9.

Once correct data has been entered, the program should calculate and display the percentage of calories that come from fat. Use the following formula:

Percentage of calories from fat = (fat grams x 9) / Calories

Some nutritionists classify food as low fat if less than 30 percent of its calories come from fat. If the results of this formula are less than 0.3, the program should display a message indicating the food is low in fat.

PENN FOSTER 41882900
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
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 the sun is 57.9 million kilometers
Mass 3.31 x 10^23 kg
Surface temperature -173 to 430 degrees Celsius

Venus:
Average distance from the sun is 108.2 million kilometers
Mass 4.87 x 10^24 kg
Surface temperature 472 degrees Celsius

Earth:
Average distance from the sun is 149.6 million kilometers
Mass 5.967 x 10^24 kg
Surface temperature -50 to 50 degrees Celcius

Mars:
The average distance from the sun is 227.9 million kilometers
Mass 0.6424 x 10^24 kg
Surface temperature -140 to 20 degrees Celcius

PENN FOSTER 41883000
For this graded project, you’ll complete several tasks to test your knowledge of the material you’ve learned in this course so far. If you’ve read all the material in each assignment and have completed the exercises in the text, you shouldn’t have any problems completing the tasks. For this project, create a program with a class named Car.

Scenario
You’ve been asked to create a program on cars.
1. Turn to page 563 of your textbook and read Programming Exercise 2—Car Class.
2. Create a program with the information given in your textbook on page 563.

Car Class Design a class named Car that has the following fields:
• year model: The year Model 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 constructor and other methods:
• Constructor: The constructor should accept the car’s year model and make arguments. These values should be assigned to the object’s year model and make fields. The constructor should also assign 0 to the speed field.
• Assessors: Design appropriate accessor methods to get the values stored in an object’s year model, 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 five times. After each call to the accelerate method, get the current speed of the car and display it. Then call the brake method five times. After each call to the brake method, get the current speed of the car and display it.

PENN FOSTER 41880600
Running on a particular treadmill allows you to burn 3.9 calories per minute. Write a program that uses a loop to display the number of calories burned after 10, 15, 20, 25, and 30 minutes.
Golf Scores
The Springfork Amateur Golf Club has a tournament every weekend. The club president has asked you to design two programs.
(1) A program that will read each player’s name and golf score as keyboard input, and then save these records in a file named golf.dat. (Each record will have a field for the player’s name and a field for the player’s score.)
(2) A program that reads the records from the golf.dat file and displays them.
(1)
Declare string name
Declare integer score
Display “Enter name.”
Input name
Display “Enter Score”
Input score
Open “C: FOLDERNAME golf.dat” For Append As #1
‘ appends the input to an existing file
‘ write to the textfile
Write #1, name, score
close #1 ‘ close the file

(2)
Declare string name
Declare integer score
Open “C: FOLDERNAME golf.dat ” For Input As #1 ‘ Open file for input.
do while not of(1)
Input #1, name, score
display name & vb tab & score
loop
close #1

## Need to Purchase Penn Foster?

Are you seeking out online exam help? Our take my online take look at specialists will prevent all of the pressure you are taking to clear up checks online. Our examination helper will manual you with the maximum correct answer on your online examination preparations. We propose you seek advice from our online examination helper to discover the proper route for clearing your take-look. Our crew has furnished online examination assistance to many college students in famous international locations just as the United States, Canada, Australia, and the United Kingdom, in which college students have acquired suitable grades. So, what are you ready for? Take this golden possibility to excel to your take a look. Chat with us today!

Scott Belmont from NYC, USA
Hired a tutor to take programming class and final exam
40 minutes ago
Ebony Nicole from Bronx, USA
Hired a tutor to take history and algebra final exams
2 hours ago
Randy Wells from Texas, USA
Hired an expert to take chemistry proctored exam
1 hour ago
Kurt LeBlanc from Iowa, USA
Hired an expert to take statistics online exam
1 hour ago