Write java code for a bmi class with a default constructor

Assignment Help Computer Engineering
Reference no: EM131985129

Problem

A local health club wants to computerize the Body Mass Index (BMI) calculation for its members.

The BMI calculator uses height and weight to calculate the BMI. The BMI formula is:

Write java code for a BMI Class with both a default & non-default constructor, standard accessors, mutators (with valid argument checking), a method to return the BMI value, and a toString() method. The toString() method should also return the Weight Status from the below table.

BMI Weight Status Categories
BMI Weight Status
Below 18.5 Underweight
18.5 -24.9 Normal
25 - 29.9 Overweight
30 & Above Obese

Here is a sample code segment you might use to test your BMI class.
BMI data1 = new BMI();
BMI data2 = new BMI(250, 60);
data1.setHeight(76);
double value=data2.getBMI();
System.out.println(data1);
System.out.println(data2);

Reference no: EM131985129

Questions Cloud

What is the flow process in the customer every hour : What is the flow process in the customer every hour? Assuming unlimited demand, what is the new flow rate if the center adds the server to bottleneck resource?
Review the financial performance of skinner industries : Skinner Industries from Conway, North Carolina has found an exclusive market in supplementary equipment to support the ever increasing motor sports market.
Write a program that reads a list of concepts from text file : Write a program that reads a list of concepts/strings from the LIST.txt text file (one concept per line), stores them into an array of strings and then prints.
What is the degree of combined leverage : If you combine Sinclair's capital structure with Boswell's operating plan, what is the degree of combined leverage?
Write java code for a bmi class with a default constructor : Write java code for a BMI Class with both a default & non-default constructor, standard accessors, mutators (with valid argument checking), a method to return.
What is the size of the payments that must be deposited : What is the size of the payments that must be deposited at the beginning of each 6-month period in an account that pays 9.6%, compounded semiannually.
The present value of the expected future returns : Since shareholder wealth is the present value of the expected future returns to the owners of the business.
Tools of communication in organisation : Project - TOOLS OF COMMUNICATION IN ORGANISATION - coherent concepts relating to the topic with appropriate in-text citations of the sources
Will eric receive a refund or owe additional tax : Based on his withholding, will Eric receive a refund or owe additional tax? What is the amount?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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