\$20 Bonus + 25% OFF

COIT20245 Introducing To Programming

0 Download1 Pages / 2 Words Add in library Click this icon and make it bookmark in your library to refer it later. GOT IT
• Course Code: COIT20245
• University: Central Queensland University
• Country: Australia

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. Wikipedia (https://en.wikipedia.org/wiki/Body_mass_index) defines the following 8 categories for 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 2. The highest BMI 3. The average BMI 4. The number of individuals with normal BMI 5. The number of individuals with higher than normal BMI 6. 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 Below is example output for N = 3 Your welcome message goes here … Height for person 1 (m): 1.82 Weight for person 1 (kgs): 80 BMI for person 1: 24.2 which is normal (healthy weight) Height for person 2 (m): 1.82 Weight for person 2 (kgs): 100 BMI for person 2: 30.2 which is moderately obese Height for person 3 (m): 1.82 Weight for person 3 (kgs): 60 BMI for person 3: 18.1 which is underweight Summary ******* Lowest BMI : 18.1 Highest BMI :

30.2 Average BMI : 24.2 Number with low BMI: 1 Number with normal BMI: 1 Number with high BMI: 1 Your exit message goes here … Your application is to follow the same format for input and output as in the example above, but with customised welcome and exit messages. 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 } }.

Submission You are to submit a zipped folder containing
• The two .java files that comprise your application. Alternatively, if you have used NetBeans, this can be replaced with a zipped project folder. Details of how to do this are available in the NetBeans FAQ on the unit website.
• Report.docx. This file contains a test report that includes student name, student ID number, unit name, unit code, a test plan and test results. The test plan is to contain a list of the input values that you have used to test the program, the expected output values and the actual output values generated by your program.

The test results are screenshots to show that that the program generates the actual outputs shown in the test plan. Note that because BMI is calculated as a floating point value, we can’t (in general) test it for equality. What this means in terms of your test plan is that you do not need to test the category end points – all you need to do is to generate one set of inputs (and the corresponding output) per category. In generating these inputs, you may find a BMI calculator, such as

Note that markers will use their own test data when testing your assignment. Marking Criteria Criteria Marks Allocated 1 Variables, constants and types Declaring and using variables and constants /1 2 Objects and classes Creating/declaring and using objects and classes /1 3 Loops Using loops and conditions /1 4 If statements Using if statements and conditions /1 5 Methods Declaring and using methods /1 6 Inputs and Outputs Reading input /1 Displaying results /1 7 Overall logic and program Calculating quantities /4 Spacing and indentation conventions /1 Naming conventions /1 Comments /2 8 Report Test Plan /2 Test results /3 Sub-Total /20 Penalties Does not compile: 15 marks Late submission : 5% (1 mark) / day or part of a day Total /20.

Cite This Work

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

My Assignment Help (2020) Introducing To Programming [Online]. Available from: https://myassignmenthelp.com/free-samples/coit20245-introducing-to-programming
[Accessed 24 October 2020].

My Assignment Help. 'Introducing To Programming' (My Assignment Help, 2020) <https://myassignmenthelp.com/free-samples/coit20245-introducing-to-programming> accessed 24 October 2020.

My Assignment Help. Introducing To Programming [Internet]. My Assignment Help. 2020 [cited 24 October 2020]. Available from: https://myassignmenthelp.com/free-samples/coit20245-introducing-to-programming.

Latest Programing Samples

NIT5120 Software Engineer

• Course Code: NIT5120
• University: Victoria University
• Country: Australia

Answers:- Task 1 Project planning   1.1 Gantt chart : -                                                             1.2 Trello board       2.Requirements Documentation Borrower maintains their fine list. Fine is always less than \$ 25. System automatic calcula...

7515ENG : Computer System

• Course Code: 7515ENG
• University: Griffith University
• Country: Australia

Answer: ENCODING During encoding, the dictionary is generated so as to comprise strings with single character A dictionary is initialized to contain the single-character strings equivalent with probable characters of input. It functions through scanning the strings of input for consecutively substrings that are longer until the one not in the dictionary is found. After finding the string, the string’s index apart from the character that...

ITECH7410 Software Engineering Methodologies

• Course Code: ITECH7410
• University: Federation University Australia
• Country: Australia

Answers:- INTRODUCTION The oral-B Braun toothbrush has very appealing features that are helpful in improved dental hygiene. The toothbrush can be used to clean the sensitive areas in the mouth such as the gums and the tongue as well as brush all the sides of the tooth and floss the inside sections of the teeth so as to floss. There are three main modes which a user can choose from out of the 5 specialized modes namely the daily mode, the deep c...

G700 : Computer Automated Coding

• Course Code: G700
• University: The University Of Edinburgh
• Country: United Kingdom

Answer: Software The main focus point of the software is the use of computer software that generates a set of code which is related to medical aspect which can be reviewed, validated and use which is based on the aspect of clinical documentation which are provided by the heath care practitioners. It can be stated here that the concept which is related to the CAC can be misunderstood as a concept of auto coding (Jones, Beecroft & Patterson...

ITC508 Object Modelling: Collins ATM

• Course Code: ITC508
• University: Charles Sturt University
• Country: Australia

Answers   Case Study   Introduction             The business information system is described as a system that integrates information technology components, people and overall business functions. The business information system helps to bring information technology components and business functions together to establish effective interaction among the components to provide org...

Next

Just share requirement and get customized Solution.

Orders

Overall Rating

Experts

Our Amazing Features

On Time Delivery

Our writers make sure that all orders are submitted, prior to the deadline.

Plagiarism Free Work

Using reliable plagiarism detection software, Turnitin.com.We only provide customized 100 percent original papers.

24 X 7 Live Help

Feel free to contact our assignment writing services any time via phone, email or live chat. If you are unable to calculate word count online, ask our customer executives.

Services For All Subjects

Our writers can provide you professional writing assistance on any subject at any level.

Best Price Guarantee

Our best price guarantee ensures that the features we offer cannot be matched by any of the competitors.

Our Experts

5/5

1265 Order Completed

97% Response Time

James Cook

Wellington, New Zealand

5/5

285 Order Completed

99% Response Time

Eugene Baranowski

London, United Kingdom

5/5

1692 Order Completed

98% Response Time

Alfred Dodd

Wellington, New Zealand

4/5

2594 Order Completed

95% Response Time

FREE Tools

Plagiarism Checker

Get all your documents checked for plagiarism or duplicacy with us.

Essay Typer

Get different kinds of essays typed in minutes with clicks.

Chemical Equation Balancer

Balance any chemical equation in minutes just by entering the formula.

Word Counter & Page Calculator

Calculate the number of words and number of pages of all your academic documents.

Refer Just 5 Friends to Earn More than \$2000

1

1

1

Live Review

Our Mission Client Satisfaction

hank you for being prepared for our meetings, Tom! By coming to each meeting with well-researched and thought-out ideas, you\'re helping us move forward in our process. I look forward to our next meeting.

User Id: 427804 - 24 Oct 2020

Australia

tremendous graduate writing! Excited for the quick results! Always rely on these experts!

User Id: 453763 - 24 Oct 2020

Australia

First I would like to thank the second Expert. The work is of a very high standard. I am grateful for that. Second, I do appreciate the first Experts efforts.

User Id: 92806 - 24 Oct 2020

Australia

very detailed assignment. No grammar mistakes. The author throughly followed APA guidelines.

Australia