New

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

# COIT20245 Introduction To Programming

## Question:

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

}

}

### Cite This Work

"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.

### Latest Programing Samples

#### TM352 Web Mobile And Cloud Technologies

• Course Code: TM352
• University: The Open 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 Tags: United Kingdom Birmingham Management Business Market Implementation University of London MBA

#### CSI6108 Fundamentals Of Software Engineering

• Course Code: CSI6108
• University: Edith Cowan 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 Tags: Australia Perth Computer Science CSI6108 Fundamentals of Software Engineering University of Adelaide Engineering

#### ECON355 Introduction To International Trade

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...

#### CS 210 Introduction To Programming

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++...

#### MN404 Fundamentals Of Operating Systems And Programming

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...

Next

### We Can Help!

Get top notch assistance from our best tutors !

### Refer & earn

Just refer 5 friends to earn more than \$2000.

### 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!