Reference no: EM13963339
Lab: Generating the BMI Table
The goal of this lab is to write a code BMITable.java that produces a table of BMI (the Body-Mass Index). The body-mass index of a person is determined by the height and weight of the person, given by the formula:
* (the height in inches) / (the weigh in pounds)-squared.
Our goal is to write a code that produces a table that shows the BMI value for a range of height and a range of weight.
The lab task consists of two parts. Part 1 is worth ten points and part 2 is worth two extra points. In Part 1, the size parameters for the table will be fixed while in Part 2, the size parameters will be entered by the user.
Part 1: Fixed-size BMI Table
We will use a double loop for the table generation. The rows of the table are the weight, which ranges from 260 pounds down to 80 pounds with the step-width of 5 (that is, the values are 260, 255, 250, ...). The columns of the table are the height, which ranges from 56 inches to 76 inches with the step-width of 2 (that is, the values are 56, 58, 60, ...). We use the formula 703.0 * weight / (height * height) for calculating the value. We will print each BMI value using System.out.printf("%5.1f", xxx) to print xxx in five chater spaces with one digit below the decimal point.
Co-ordination inherent in large-scale organizations
: 1. Defects in co-ordination inherent in large-scale organizations may apply to an organization whether the organization is bureaucratic or not. 2. Chester Barnard criticized Weber for failing to analyze the correspondence of behaviour in organiza..
|
Mercury boils at a temperature of 357degree celcius.
: Two thermometers are constructed in the same way except that one has a spherical bulb and the other has a cylindrical bulb. whic one will respond quickly to temperature changes?
|
Capacity to adapt to changing circumstances
: Assertion (A): A bureaucrat's capacity to adapt to changing circumstances is far less than that conceived by those who drew up the organizational rules. Reason (R): In order to be perceived as effective, the bureaucrat behaves consistently and fol..
|
What is the estimated value per share of the firms stock
: Calculate the NPV of each machine - calculate the equivalent annual cash flows form each machine and what is the estimated value per share of the firm's stock?
|
Write a code bmitable java that produces a table of bmi
: The goal of this lab is to write a code BMITable.java that produces a table of BMI (the Body-Mass Index). The body-mass index of a person is determined by the height and weight of the person, given by the formula.
|
How far will the alcohol column move
: The container is slightly heated, and the alcohol column is observed to move along the linear section of the tube. If the temperature of the air in the container was originally 23 Celsius, then if the temperature increases by .36 Celsius how far w..
|
Example of scientific management
: Who among the following conducted one of the most widely cited pig iron experiment as an example of scientific management? (a) Robert Owen (b) Frederick W. Taylor (c) Chester Barnard (d) Mary Parker Follett
|
How you feel about the music
: Listen to those music video and write a summary *write notes* on how you feel about the music and a little bit about andean music history or something about their cultuer and music
|
Define the laws of thermodynamics.
: What is an absorption spectra? Explain why a green leaf looks green. Is it the same reason a red leaf looks red? Explain your answer.
|