#include using namespace std; int main() { double BMI = 0.0; // BMI Values cout << "\nUnderweight : less than 18.5" << endl; cout << "\nNormal : between 18.5 and 24.9" << endl; cout << "\nOverweight : between 25 and 29.9" << endl; cout << "\nObese : 30 or greater" << endl; double weight;// define the variable weight in pounds cout << "\nPlease enter your weight in Pounds.\n" << endl; cin >> weight;// get the user's weight in Pounds cout << "lbs" << endl; double height;// define the variable height in Inches cout << "\nPlease enter your height in Inches.\n" << endl; cin >> height;// get the user's height in Inches cout << "Inches" << endl; cout << "\nPlease enter your height in Feet.\n" << endl; cin >>
A medical researcher collects health data on many women in each of several countries. One of the variables measured for each woman in the study is her weight in pounds. The following list gives the five-number summary for the weights of adult women in one of
In order to put the problem into perspective, I first set up my own possible variables for the first platform height, the difference in height between each platform, and the total number of platforms. I came up with the numbers for each variable respectively: 6, 3, and 3. The first platform is 6 feet tall. There are 3 platforms. The distance between each platform is 3 feet. The
while (n>10) // checks that value of n does not exceed max allowed array size
The equation should look like: Range = 2 * 20 * 10^-6 * 4 * 10^-6 which is =
Minimum element was initially zero, which resulted in a wrong output. Using the debugger to check how For-Loop iterated, I found the initial problem of min = 0 that caused IF statement to be always False. Thus, I changed min=0; to min=num[0] and the program begun to work perfect.
Answer: This is an ordinal variable because BMI is ordered from less BMI to higher BMI.
while (left <= right)//while loop will run as long as left is less or equal to right
We are using two FOR Loop to traverse the input and create a 2 dimensional array for printing the output.
The first function, as shown in Listing 2.1 creates a dialog for “gain1 parameter” which copies to C variable “gain1”. On the other hand, in the C source program, a global variable “gain1” of type float or short should be declared and initialized.
In the above assignment statement, the variable x holds the string “Python”, y holds the float 127.5, and z holds the integer 54.
The variable y represents the height h, and the variable x represents time t; also the coefficients a, b and c have the values:
Knowing this information, you need to first tell me, and then show this in your graph:
calculation that would always return the same figure. As I didn’t realise the extent to which
0 7 188 0.085 1,067 0.48 207 236 — 417 300 2.2 0.4 59.3 10.1 0.24 64.4 1,241 539 2.5 4,026 97,000 625 17 21 5 20 — 1,065 642 10,643 69
Design a program that calculates the total amount of a meal purchased at a restaurant. The program should ask the user to enter the charge for the food, and then calculate the amount of a 15 percent tip and 7 percent sales tax. Display each of