Penn Foster 418827, 418828, 418829, 418830, 418806 – All pseudocodes and raptor flowcharts with console output (where needed)) – Guaranteed 100% score
PENN FOSTER 41882700
A personal trainer asks you to create a program to calculate and displays 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. crating 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 nutritionistin the same fitness facility. The nutritionist would like you tocreate a program that calculates fat grams and calories. ReadProgramming Exercise 3 on page 279 for the information foryour 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 are 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 a food as low fat if less than 30 percent of its calories come from fat. If the results of this forumlas 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
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 the sun 57.9 million kilometers
Mass 3.31 x 10^23 kg
Surface temperature -173 to 430 degrees Celsius
Venus:
Average distance from the sun 108.2 million kilometers
Mass 4.87 x 10^24 kg
Surface temperature 472 degrees Celsius
Earth:
Average distance from the sun 149.6 million kilometers
Mass 5.967 x 10^24 kg
Surface temperature -50 to 50 degrees Celcius
Mars:
Average distance from the sun 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 successfully 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.
Submitting Your Project
Car Class Design a class named Car that has the following fields:
• yearModel: 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 as arguments. These values should be assigned to the object’s yearModel 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 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 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.
Answer:
(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 eof(1)
Input #1, name,score
display name & vbtab & score
loop
close #1















* You can also use 2CO option if you want to purchase through Credit Cards/Paypal but make sure you put the correct billing information otherwise you wont be able to receive any download link.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at [email protected].
* As soon as the payment is received, download link of the solution will automatically be sent to the address used in selected payment method.
* Please check your junk mails as the download link email might go there and please be patient for the download link email. Sometimes, due to server congestion, you may receive download link with a delay.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at [email protected] and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please wait for atleast 8 hours for a response from our side. Afterall, we are humans.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.
* In case of any query, please donot hesitate to contact us at [email protected].
* MOST IMPORTANT Please use the tutorials as a guide and they need NOT to be used for any submission. Just take help from the material.
******************************************** Good Luck ***************************************************
Any personal information received will only be used to fill your order. We will not sell or redistribute your information to anyone.
We will try our best to resolve the issue and if still persists we can discuss for a refund in case its required.