RAPTOR
This file holds height and weight for a group of people. Figure-1 shows the “hw.txt” file. Each pair of numbers in the file is a record for one person. For example, the first pair is (180,180); it means the height is 180 cm and weight is 180 lb for person-1. The 2nd pair is (170,200); it means the height is 170 cm and the weight is 200 lb for person-2 and so on
We use height and weight to calculate the Body Mass Index (BMI) for a person. The following formula is used to calculate the BMI:
𝑩𝑴𝑰 =𝒌𝒈/𝒎𝟐
As you have seen in the text file, the heights and weights are given in cm and lb respectively, so before we can apply the formula to do the calculation, we have to convert the height and weight to kilogram and meter respectively. For conversion, please use 2.2 lb = 1 kg and 100 cm = 1meter. Once the BMI is calculated then we use the result to determine whether a person has normal weight or underweight or overweight or obese. We use the following to calculate the BMI category based on the calculated
BMI:
BMI Categories:
Underweight = <18.5 Normal weight = 18.5–24.9 Overweight = 25–29.9
Obesity = BMI of 30 or greater
Your task is to write a raptor program using sub charts that will generate the following output:
The problem can be solved in many ways. So, you can choose any approach. To solve the problem, I have designed the following main function, but your solution could be different. You can use the following for your reference only.
DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma
Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t
Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th
1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of
1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of
Get Free Quote!
309 Experts Online