New

Learn smart - Learn online. Upto 80% off on courses for a limited time. View Courses

Securing Higher Grades Costing Your Pocket? Book Your Assignment at The Lowest Price Now!
loader
Add File

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!

COIT20245 Introduction To Programming

tag 0 Download 2 Pages / 319 Words tag 15-05-2020

Question:

Assessment Task

You are to write a Java console application that calculates and classifies BMI (Body Mass Index) for individuals. The number of individuals (N) is fixed at 10, so it should be declared as final int N = 10 in your program.

BMI is calculated using the following equation:

BMI = weight / (height*height)

where weight is in kilograms and height is in metres. 

BMI:

Category

BMI (kg/m2)

 

from

to

Very severely underweight

 

15

Severely underweight

15

16

Underweight

16

18.5

Normal (healthy weight)

18.5

25

Overweight

25

30

Obese Class I (Moderately obese)

30

35

Obese Class II (Severely obese)

35

40

Obese Class III (Very severely obese)

 

40

 

For each person, you are to enter their weight (in kilograms) and height (in metres).The application is to then calculate and display the BMI, together with the corresponding 8 level category. When all data has been entered, a summary report consisting of

  1. The lowest BMI
  1. The highest BMI
  1. The average BMI
  1. The number of individuals with normal BMI
  1. The number of individuals with higher than normal BMI
  1. The number of individuals with lower than normal BMI is displayed.

Normal, low and high BMI values are defined according to the table below:

Category                   BMI (kg/m2)

                                   from to

 

Low                            18.5

Normal (healthy weight) 18.5 25

High                                25

The application is to use the following classes and methods:

public class BMICalculator {

public BMICalculator() {

// no code required

}

public double value( double weight, double height ) { // return BMI;

}

public String classification8( double bmi ) {

// return the 8 category (Wikipedia) classification for this BMI

}

public String classification3( double bmi ) {

// return the 3 category (high, normal, low) classification for this BMI

}

}

public class Assignment1 {

// no attributes required

public static void main(String[] args) {

  • local variable declarations go here
  • display welcome message
  • loop to input an individual’s height and weight and calculate and display BMI, calculate summary values
  • generate and display summary
  • display exit message

}

}

 
Download Sample Now

Earn back the money you have spent on the downloaded sample by uploading a unique assignment/study material/research material you have. After we assess the authenticity of the uploaded content, you will get 100% money back in your wallet within 7 days.

Upload
Unique Document

Document
Under Evaluation

Get Money
into Your Wallet

Total 2 pages

Cite This Work

To export a reference to this article please select a referencing stye below:

My Assignment Help. (2020). Introduction To Programming. Retrieved from https://myassignmenthelp.com/free-samples/coit20245-introduction-to-programming.

"Introduction To Programming." My Assignment Help, 2020, https://myassignmenthelp.com/free-samples/coit20245-introduction-to-programming.

My Assignment Help (2020) Introduction To Programming [Online]. Available from: https://myassignmenthelp.com/free-samples/coit20245-introduction-to-programming
[Accessed 04 July 2022].

My Assignment Help. 'Introduction To Programming' (My Assignment Help, 2020) <https://myassignmenthelp.com/free-samples/coit20245-introduction-to-programming> accessed 04 July 2022.

My Assignment Help. Introduction To Programming [Internet]. My Assignment Help. 2020 [cited 04 July 2022]. Available from: https://myassignmenthelp.com/free-samples/coit20245-introduction-to-programming.


Planning to buy homework online but not sure whom to select. Well, you will not find a better homework help website than Myassignmenthelp.com globally. The reason is that we are committed to ease out the pressure on students and help them enjoy life a little more. We started providing homework help for the same reason and ensure that quality solutions are provided every time. We provide homework writer on all subjects from school to Grad levels. The solutions are multiple checked for rendering error-free and made grammatically and factually sound.

Latest Programing Samples

TM352 Web Mobile And Cloud Technologies

Download : 0 | Pages : 8
  • Course Code: TM352
  • University: The Open University
    icon

    MyAssignmentHelp.com is not sponsored or endorsed by this college or university

  • Country: United Kingdom

Answer: Introduction The research of the project is mainly on the imperative standards where one is able to meet the idea of the taxi sharing applications, where there are different people who are working on the Open University capture to travel in between the station and the campus. There are travelling peak hours where some people have to standard in queue for taking the bus. Part 1: Taxi Sharing Application With the user emerging technol...

Read More arrow Tags: United Kingdom Birmingham Management Business Market Implementation University of London MBA 

CSI6108 Fundamentals Of Software Engineering

Download : 0 | Pages : 5
  • Course Code: CSI6108
  • University: Edith Cowan University
    icon

    MyAssignmentHelp.com is not sponsored or endorsed by this college or university

  • Country: Australia

Answer: Usecase Diagram Use case diagrams provide a detailed description about each use cases of the system. The use cases can be collaborated with more than one external users or actors to perform a particular task. The Use case is also called as behavior diagram. The stakeholders or actors of a system are the reason for providing the results for each cases. It says about the behavior and the activities of the entire system. The major purpos...

Read More arrow Tags: Australia Perth Computer Science CSI6108 Fundamentals of Software Engineering University of Adelaide Engineering 

ECON355 Introduction To International Trade

Download : 0 | Pages : 8

Answers: 1. Imagine that Edmonton currently does not require bicycle riders to wear helmets. Furthermore, imagine that you enjoy riding your bicycle without wearing a helmet. 2. From your perspective, what are the major costs and benefits of a proposed city by-law that would require all bicycle riders to wear helmets? List costs and benefits. (5 points) Answer: The sale of helmets would increase. Making with the economy. Less injured peopl...

Read More arrow

CS 210 Introduction To Programming

Download : 0 | Pages : 2

Answer: Description of Program In the program developed, there are 5 files created as follows: h This is a header file which defines the board of the game on which the game is to be played. It is 3x3 board which is displayed on the screen. With every move the board is checked if a vertical, horizontal or a diagonal match is made by any player in the game. If yes, then the player with the match wins.  cpp This is C++...

Read More arrow

MN404 Fundamentals Of Operating Systems And Programming

Download : 0 | Pages : 5

Answer: Introduction: In this assignment a web application for Country Kitchen Classics Web User Interface is developed. The application is used by the customers to order meals. This helps the owners of Country Kitchen Classics to sell their gourmet frozen meals over the Internet. The user interface helps the customer to register themselves with the site in order to book their meals. The customer register with their information like name, pho...

Read More arrow Tags: Australia Toongabbie Humanities Management University of New South Wales Masters in Business Administration 
Next

Content Removal Request

If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the content removal request.

5% Cashback

On APP - grab it while it lasts!

Download app now (or) Scan the QR code

*Offer eligible for first 3 orders ordered through app!

screener
ribbon
callback request mobile
Have any Query?