Write a code bmitable java that produces a table of bmi

Assignment Help JAVA Programming
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.

Reference no: EM13963339

Questions Cloud

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.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Implements the measurable interface

Implement a class Quiz that implements the Measurable interface. A quiz has a score and a letter grade (such as B+).

  Modify the numbers guessing game program

Modify the numbers guessing game program. Suppose that the variable num and guess are as declared and the diff is an int variable.

  Discuss how an interface differs from a class

Discuss how an interface differs from a class, how interfaces are defined, and what does implementing an interface mean.

  Method splitstack that takes a stack

Write a method splitStack that takes a stack of integers as a parameter and splits it into negatives and non-negatives. The numbers in the stack should be rearranged so that all the negatives appear on the bottom of the stack and all the non-negat..

  Programming exercises

Programming Exercises 1. Write an application named BadSubscriptCaught in which you declare an array of 10 first names. Write a try block in which you prompt the user for an integer and display the name in the requested position.

  Organizational report

You have been hired as the CIO of a large multinational Internet advertising company. The president of the company is entertaining a major new software development project to keep track of advertising revenues.

  There are different ways you can use virtulazation one

write a 200- to 300-word short-answer response to the following there are different ways you can use virtulazation. one

  Questions of java programming

Write a program that opens a .txt, reads the contents of the file line by line, and prints the content of each line. To do this, you should use look up how to use the Buffered Reader class1. Remember to use the try and catch statements to handle e..

  Can you provide the output of this program

Can you provide the output of this program - What is the output of following JavaScript code?

  What is an illustration of a javascriptreg framework in the

what is an example of a javascriptreg framework? in the framework you have described what is an example of an

  Create an array of date objects

Create an array of Date objects of size 4. Initialize the array by using a loop. In the loop, use the Scanner.nextLine() method to input a date as a string, convert it to a date by using the toDate() method, and assign the result to an element in ..

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd