$20 Bonus + 25% OFF +
5
%
Cashback
information
Securing Higher Grades Costing Your Pocket? Book Your Assignment at The Lowest Price Now!

Question:

Write a java application that allows the user to read, display, sort, and search the name (type String), height and weight as well as body mass index (BMI) of a person for N people. N should be declared as a constant and should be either equals to the largest digit of your student ID number or N=9 (if the highest digit of your student ID number is less than 9). The method of calculating BMI after input of height and weight is the same as Assignment 1 specification. The name, height, weight and BMI must be stored in separate single dimension arrays/arrayLists. This requires that your implementation must use parallel arrays (or arrayLists). If there are any uses of an array of records or structures/objects, it will be penalized under the heading “Using techniques not covered in the course.” The ranges for height (in unit of cm) and weight (in unit of kg) of a person should be in 100∼220, and 0∼300 respectively. They are assumed to be integers. These data must be entered from the keyboard and a validation for minimum and maximum values for each input data variable must be done. In addition, the input of a person’s name must be validated in such a way that a valid name is assumed only to contain English letters and a space between first name and surname. An example of an invalid input of name can be shown in the Figure 7 on page 5. Your application should display and execute a menu with the following options. A switch statement must be used to execute the following menu options.

1.    Input data

2.    Display

3.    Sort by name

4.    Sort by weight

5.    Search

6.    Display extreme BMI

7.    Exit

1.Input data
 
The details for each option are described as below. 1. Input data

This option reads each person’s name, height and weight for N people from the keyboard and stores them in separate one-dimension arrays/arraylists. Figure 1 shows a sample input for a personal data. If the input of height or weight exceeds the ranges defined on the last page, then an appropriate message should be displayed and the user should be asked to re-enter a new value. In addition, the input of name also must be validated as required on page 1.

2. Display

This option displays the names, heights, weights and calculated BMI data stored in Arrays/ArrayLists for all people, as shown in Figure 2.

3. Sort by name

When this option is selected, the names of people are sorted in ascending order and this option also displays sorted names with their height, weight, and BMI data, as shown in Figure 3.You can use any sorting algorithm which uses at least two while loops and one if statement. A built-in sort should not be used.

4. Sort by weight

This option sorts the weights in ascending order and displays the corresponding changes of heights, names, and BMI, as shown in Figure 4.

5. Search

When the ‘Search’ option is executed and the user enters a person’s name regardless of the lower case or upper case in the name spelling, then the height, weight and BMI for that person will be displayed as shown in Figure 5 (In this example, the person’s name – bob oconnor is entered). If the entered name doesn’t match any existed one, it will show a warning message.

6. Display extreme BMI

If the user selects this option, the program will calculate and display the minimum value of BMI, maximum value of BMI as well as their corresponding person’s name, as shown in Figure 6.

7. Exit

Selecting ‘Exit’ option will exit the execution of the program.
 
 
 
 
 
 
 

Program design

You may use any design that meets the specification. However, a good design will adhere to the following guidelines:

•    be logically correct

•    be easy to read and maintain

•    be well-designed

•    use UML class diagram

•    use following methods and class

public class BMIDataManager
        
{    //constructor    
public BMIDataManager( )        
public void displayMenu()        

public void inputData() public void sortByName( ) public void sortByWeight( ) public void search( )
public void displayExtremes( )
private boolean isValidName(String name)

helper methods here if any

public static main(String [ ] args)
{

}

}

Testing

Testing is important. You should:

•    list the different types of test cases.

•    display the results of each test case. 

 

Answer:

Serial number

Unit to be tested

Criteria of success

Method used for testing

Testing results

1

Input Data

User will input data of 9 persons

Give 1 as option and Just enter name , height and weight

Inputs given Successfully

2

Display details

It should display details of all persons

Choose 2 as option and details of all will be displayed

Successful, every detail of all users is displayed.

3

Sort by name

Details of all persons should be displayed according to their names

Choose 3 as option

All the data is sorted according to the name of persons

4

Sort by weight

Details of all persons should be displayed according to their weight

Choose 4 as option to sort according to weight

All data is sorted according to the weight of persons

5

To search any particular person

Enter the name of person whose details you want to see

Choose 5 as option and enter the name

The details of particular person will be displayed

6

Display extreme bmi

To find out the minimum and maximum bmi

Choose 6 as option and system will print the maximum and minimum bmi values

Minimum and maximum bmi’s are displayed

OR

For years now, MyAssignmenthelp.com is providing affordable essay help to millions of students worldwide. Our essay assistance services have helped us in assisting students with even the toughest essay assignments. We take pride in the fact that we cater the best assistance to search terms like help me with my essay. We offer affordable services in the fastest way possible. For our fast delivering services, students trust us with their urgent essay assignment needs. Two of our most popular essay writing services are maths essay help and English essay help.

Most Downloaded Sample Of Management

Toulin Method Of Argumentation

Download : 292 | Page : 1

You are required to write a researched argument essay that convinces persuades the reader of your position / stance. This is an academic, researched and referenced document that demonstrates your understanding of the objectives of the course. The structure of the argument will follow the TOULMIN METHOD of argumentation.

Read More arrow Tags: Australia Arlington Management University of New South Wales 

Consumer Behavior Assignment

Download : 214 | Pages : 9

Executive Summary The purpose of this report is to elaborate the factors which are considered by individuals before selecting an occupation. Choosing an occupation is indeed a major decision of everyone’s life and it does give a shape to where he would be heading in the course if time. The report begins with a list of various occupations which have been going since the human civilization started though it has indeed changed its form to...

Read More arrow Tags: Australia Arlington Management University of New South Wales 

Internet Marketing Plan For River Island

Download : 373 | Pages : 13

Introduction With the increase enhancement in the field of technology, it has been considered essential by the businesses to implement such technology in their business processes. Further, the increasing demand from the customers regarding the better quality of products and services delivered to their doorstep has also necessitated for the businesses to implement the e-business strategy in their business processes. E-business which is common...

Read More arrow Tags: Australia Arlington Management University of New South Wales 

Strategic Role Of HR In Mergers & Acquisitions

Download : 331 | Pages : 9

Executive Summary In a merger & acquisition, role of an HR has emerged as a very critical function. At each stage of merger and acquisition process, HR plays a strategic role. The importance of role of HR part in integration of the merged companies should not be taken lightly and should be handled very carefully and with due planning. At pre acquisition stage, due diligence should be taken before the start of the process and HR must carve ou...

Read More arrow Tags: Australia Arlington Management University of New South Wales 

Relationship Between Knowledge Management, Organization Learning And HRM

Download : 365 | Pages : 7

Introduction In this competitive business environment where every business organization is trying to attract the customers of each other, it becomes essential for these organizations to remain competitive by innovating new ideas and thoughts, so that value added products and services can be provided to the customers. The motive of such organization in providing value added services to their customers, require their employees to be quite effect...

Read More arrow Tags: Australia Arlington Management University of New South Wales 
Next
watch

Save Time & improve Grade

Just share Requriment and get customize Solution.

question
We will use e-mail only for:

arrow Communication regarding your orders

arrow To send you invoices, and other billing info

arrow To provide you with information of offers and other benefits

1,112,192

Orders

4.9/5

Overall Rating

5,043

Experts

Our Amazing Features

delivery

On Time Delivery

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

work

Plagiarism Free Work

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

time

24 X 7 Live Help

Feel free to contact our assignment writing services any time via phone, email or live chat.

subject

Services For All Subjects

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

price

Best Price Guarantee

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

Our Experts

Assignment writing guide
student rating student rating student rating student rating student rating 4/5

2594 Order Completed

95% Response Time

Michael Johnson

Masters of MSc in Economics

Washington, United States

Hire Me
Assignment writing guide
student rating student rating student rating student rating student rating 5/5

265 Order Completed

97% Response Time

Ken Campbell

MSc in Electrical Engineering

Wellington, New Zealand

Hire Me
Assignment writing guide
student rating student rating student rating student rating student rating 5/5

234 Order Completed

100% Response Time

Samantha Ji

PhD in Chemistry with Specialization in Organic

Singapore, Singapore

Hire Me
Assignment writing guide
student rating student rating student rating student rating student rating 5/5

93 Order Completed

100% Response Time

Jackson Mitchell

MiM (Masters in Management) in Supply Chain Management

New Jersey, United States

Hire Me

FREE Tools

proofreading

Proofreading & Editing

Complete guid on proofreading and editing.

plagiarism

Plagiarism Checker

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

essay

Essay Typer

Get different kinds of essays typed in minutes with clicks.

edit

GPA Calculator

Calculate your semester grades and cumulative GPa with our GPA Calculator.

referencing

Chemical Equation Balancer

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

calculator

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

Check your estimated earning as per your ability

1

1

1

Your Approx Earning

Live Review

Our Mission Client Satisfaction

This was my 1st time using this site. I must say they exceeded all of my expectations!! Great customer service & stellar work!! Thank you for helping me out of a bind!!

flag

User Id: 330057 - 18 Oct 2019

Australia

student rating student rating student rating student rating student rating

I am not happy with this assignment. I asked change colored numbers on the assignment. I received the assignment with number on the cover page. I haven't any corrections as I requested. Last time I was happy as I got the true answered and reply to my queries but with this assignment I am truly disappointed

flag

User Id: 319267 - 18 Oct 2019

Australia

student rating student rating student rating student rating student rating

you people are dumbasses. When you guys have to get money you people call 1000 times and when you deliver wrong paper then I asked you to call and then I got in response call back service is not available. I asked for two different papers instead I got same papers just copy pasted. Even though I told million of times that make sure two different p...

flag

User Id: 312823 - 18 Oct 2019

Australia

student rating student rating student rating student rating student rating

Thank you for your efforts and all work have been done. Appreciate the efforts from the team support who were helpful

flag

User Id: 253707 - 18 Oct 2019

Australia

student rating student rating student rating student rating student rating
Have any Query?