Java application that calculates the body mass index

Assignment Help JAVA Programming
Reference no: EM13541663

Write a Java application that calculates and displays the body mass index (BMI) for N people. N should be declared as a constant and should be equal to the largest digit of your student id number (e.g. if your student id is s0705544 then N should be equal to 7). Assume N=4, if the largest digit of your student id number is less than 4. The BMI is a measure of relative weight based on a person's mass and height.

The application should ask the user to enter the name, height and mass of his or her body. Then program will calculate this person's BMI, which is defined as below,

BMI=mass/(height/100)2

where mass is the body's weight to the nearest kilogram, and height is the body's height in the unit of centimetre. Both of mass and height are assumed to be integer numbers here.

The application should display the body mass index (to two digits of decimals) for each person and the summary of all people that we enter. This also includes the maximum value of BMI and a simple bar chart to show how many people's BMI less than 18.5 (a threshold value that indicates whether this person is in underweight). These requirements are can shown in figures 1 and 2 as below (see next page). Your program should display similar screen images when it runs. The application should be user-friendly by displaying appropriate welcome, exit and error message. The application can use the following classes and methods (but you can use different classes or methods if your program works OK; the solution program is not unique).

Reference no: EM13541663

Questions Cloud

As a bacterium swims through water it propels : As a bacterium swims through water it propels itself with its flagella so as to overcome the frictional drag forces and move at, more or less, constant velocity of 100 micrometers/s for periods of time. If the frictional drag force on a bacterium is ..
Calculate the weight of the olive oil : a large rectangular tub is filled to a depth of 2.60 m with olive oil, which has density 915 kg/m^3. If the tub has the length 5.00m and width 3.00 m, calculate the weight of the olive oil
Explain the reaction bro3- + 5br-+ 6h+ ? 3br2 + 3h2o : For the reaction BrO3- + 5Br-+ 6H+ ? 3Br2 + 3H2O at a particular time, -?[BrO3-]/?t = 1.5 ? 10-2 M/s. What is -?[Br-]/?t at the same instant
Find the tension in the guitar string : A guitar string is being restrung with a string having a diameter of 1.4 mm and a length of 0.82 m when no tension is applied. If the string has a Young's modulus of 1.4 x 10^11 N/m^2 and is tightened by wrapping it three times around a peg with a 2...
Java application that calculates the body mass index : Write a Java application that calculates and displays the body mass index (BMI) for N people
How many grams of dry nh4cl needed in solution of ammonia : How many grams of dry NH4Cl need to be added to 2.00 L of a 0.600 M solution of ammonia, NH3, to prepare a buffer solution that has a pH of 8.89. Kb for ammonia is 1.8 X10^-5.
Determine what is the minimum number of horses required : In 1656, the Burgmeister (mayor) of the town of Magdeburg, Germany, Otto Von Guericke, carried out a dramatic demonstration of the effect resulting from evacuating air from a container. what is the minimum number of horses required
How much will the knights femur bones be stretched : A medieval knight is "racked", stretching his body with a force of 1200 N. Using the data in the previous problem, by how much will the knight's femur bones be stretched?
Find the maximum possible distance before the wire breaks : suppose the length L of the uniform bar is 3.00 m and its weight is 230 N. Also, let the block's weight W = 350 N and angle ? = 30°. find the maximum possible distance x before the wire breaks

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