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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  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.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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