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

  Create a method to calculate the value of the inventory

Create another method to sort the array items by the name of the product.

  Create your program using eclipse

Create your program using Eclipse. Name your project Assignment5 and the Java class Loops. Use the Scanner class to get input from the user and use System.out to print to the console window.

  Write a class named month

Write a class named Month. The class should have an int field named monthNumber that holds the number of the month.

  Write a java application program called largest.java

Write a Java application program called Largest.java that inputs a series of 10 single-digit numbers and determines and prints the largest of the numbers

  Afterwards a way for the user to input

And so on and so forth then afterwards a way for the user to input that they finished a particular task on the list. After the user has input that they have finished a particular task the program should be print "Good Job!" or "Keep it up!"

  Method that reads a text file and returns a list of tokens

Write a method that reads in a text file and returns a list of the tokens (preferably alphanumeric) in that file. Write a method to print out frequency results.

  Write a class called rationalnumber

Write a class called RationalNumber that represents a fraction with an integer numerator and denominator.

  Create a pair of programs a client and a server to

create a pair of programs a client and a server to distribute the functions of the library you developed. the client

  Print two random integers

Type two statements using nextInt() to print two random integers between 0 and 9. End with a newline. Ex:

  Design a program that extends the definition of the class

Design a program that extends the definition of the class JFrame to display a window on the screen. Name your class PropertyTax1, title your window "Calculation of Property Taxes," set the window's width to 400 pixels and height to 300 pixels, and te..

  Write an app to test class integerset

Create class IntegerSet. Each IntegerSet object can hold integers in the range 0-100. The set is represented by an array of bools. Array element

  Simulate the transactions of a checking account

create a base class, called CBankAccount, and two additional classes (each derived from CBankAccount), called CSavingsAccount and CCheckingAccount.

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