Calculates and displays the body mass index

Assignment Help Basic Computer Science
Reference no: EM13936383

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

Reference no: EM13936383

Questions Cloud

Template that computes and displays the absolute value : Create a program that uses this function template, passing in two arguments of type int, float, and double variable.
What would the composite standard deviation be for the risks : Given the following standard deviations of risk type 1 and 2 of $200,000 and $300,000 along with their associated correlations shown below, what would the composite standard deviation be for these risks?
Explain conflict between legislative and executive branches : Consider how that conflict has been resolved to allow the president to negotiate free trade agreements. Explain the conflict between the legislative and executive branches in negotiating free trade agreements
Discuss company marketing-business communication strategy : application to of best practice model to discuss current company marketing and business communication strategy -summary
Calculates and displays the body mass index : 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 ..
Create ifstream and ofstream objects called infile n outfile : Create ifstream and ofstream objects called "infile" and "outfile" respectively. Include 4 functions for initializing, copying text, counting, and writing the results to a file, respectively.
How might you get a handle on customer reaction to strategy : How might you get a handle on customer reaction to the strategy? What steps should you take before considering whether to roll out this strategy?
Names and numbers of london-based suppliers : Give the relational algebra expression for the following English queries. 1. Get the supplier# who supply all the blue parts
Create a digital marketing plan for an existent company : Students will create a digital marketing plan for either an existent company of their choice, or for a fictitious company. The focus of the report should be placed on a particular product or an event.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Cloud computing first look

Complete a write-up based on the videos/reading listed above. Your write-up should be between one and two pages long (APA format, double spaced, Times New Roman, 12 point font) telling what you learned from watching the videos (or reading the materia..

  Write down some of the merits of using a distributed

what are some of the advantages of using a distributed network management system in the corporate enterprise? what are

  Creating a flowchart that reflects the logic of the code

SDI_Expressions_Assignment For this assignment, you will create a calculator that collects information from the user with prompts, calculates some sort of useful result from that information, and prints the result to the console. You will also be res..

  Create case manifest and record order fulfillment

Develop sequence diagrams for the use cases Enter New Order, Create Case Manifest and Record Order Fulfillment . Update the design class diagram with attribute information and method signatures derived from the sequence diagrams.

  Identify scanning-enumeration tools about attack framework

Research and recommend at least 2 scanning and enumeration tools that your organization could use. Perform a scan against your home/personal machine or network, and supply the following information about your organization:

  What is the data wiping process?

What is the data wiping process?

  Showing how to use the html element

Describe the attributes that you think would be useful with the HTML element. Provide an example code snippet showing how to use the HTML element. !DocType Html

  Dos attacks exist for which part of the osi protocol stack

DoS attacks exist for which part of the OSI protocol stack?

  Evaluate the condition number of a symmetric matrix

How can you evaluate the condition number of a symmetric matrix; and how does this number relate to its numerical conditioning properties?

  Use openoffice software to build tables

PART 1 You are required to use OpenOffice software to build tables, write, and execute queries.Step 1Build a Database named DBMS Course Project. The database should include following tables.

  Use rfid for inventory and theft prevention

Write clearly and concisely about information security legal issues and topics using proper writing mechanics and technical style conventions

  What is the code to remove the space at the end of string

What is the code to remove the space at the end of the string below and return the result in a textbox? Dim d As String = "CSC 232 " 2. What is the code to display just the text "232" from the string "CSC 232" in a textbox?

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