country
$20 Bonus + 25% OFF
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

Download Sample

Get 100% money back after download, simply upload your unique content* of similar no. of pages or more. We verify your content and once successfully verified 100% value credited to your wallet within 7 days.

Upload Unique Document

Document Under Evaluation

Get Credits into Your Wallet

*The content must not be available online or in our existing Database to qualify as unique.

Cite This Work

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

My Assignment Help. (2016). Testing Report. Retrieved from https://myassignmenthelp.com/free-samples/testing-report.

"Testing Report." My Assignment Help, 2016, https://myassignmenthelp.com/free-samples/testing-report.

My Assignment Help (2016) Testing Report [Online]. Available from: https://myassignmenthelp.com/free-samples/testing-report
[Accessed 09 July 2020].

My Assignment Help. 'Testing Report' (My Assignment Help, 2016) <https://myassignmenthelp.com/free-samples/testing-report> accessed 09 July 2020.

My Assignment Help. Testing Report [Internet]. My Assignment Help. 2016 [cited 09 July 2020]. Available from: https://myassignmenthelp.com/free-samples/testing-report.


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.

Latest Management Samples

ISYS1055 Database Concepts For Decomposition And Functional Dependency

Download : 0 | Pages : 3
  • Course Code: ISYS1055
  • University: RMIT University
  • Country: Australia

Answer: Answer to Question 1: The candidate key for the doctor table is Rego. The candidate key for Patient Table is ID. The appointment table has candidate key, ID. The tables are already in third normal form. All the attributes in the database are atomic. Each of the tables has primary key. There is no non-functional dependency or transitive dependency. Answer to Question 2: Functional Dependency: The given custID has been presented as ...

Read More arrow Tags: Australia Melbourne Accounting Accounting theory and accountability University of Melbourne 

ACC203 Management Accounting Method

Download : 0 | Pages : 10
  • Course Code: ACC203
  • University: Elite Educational Institute
  • Country: Australia

Answer: 1. Explaining how the management accountant can help contribute design and operations of the new management accounting system for the new hospital: Being the management accountant relevant skill is needed by the individuals for adequately conducting operations. The same skills of a management accountant can help in designing and operating the new management accounting system for the new hospital. In addition, the management accounting...

Read More arrow

HI6026 Audit, Assurance And Compliance For Australian Security Exchange

Download : 0 | Pages : 9

Answer: Introduction Auditing is the process to examine the financial statements of the business entities in order to find out any material missstements in them. While auditing the statements, the responsibility of the auditors is to take into consideration the major risks of material misstatements and to take necessary steps to reduce them. On the other hand, Australian Security Exchange (ASX) has provided the companies with eight principles i...

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

NUR4232 Protecting Your Clients In The Conduct Of Research

Download : 0 | Pages : 21
  • Course Code: NUR4232
  • University: National Center For Biotechnology Information
  • Country: United States

Answer: Introduction Evidence-based models use a process for framing a question, locating, assessing, evaluating, and repeating as needed. PICO (T) elements include: Problem/Patient/Population, Intervention/Indicator, Comparison, Outcome, and (optional) Time element or Type of Study. The question for this study is as follows: In patients aged 60 years and above (P), what is the effect of being administered the influenza vaccine (I) on contra...

Read More arrow

CP5639 Conceptual Modelling For Attributes And Different Relationships

Download : 0 | Pages : 5
  • Course Code: CP5639
  • University: James Cook University
  • Country: Australia

Answer: Discussion This report discusses the solution for the conceptual modelling of the Joanne Myers Apartments. Conceptual modelling involves following a few steps in order to achieve the final conceptual model for the database. The first step is thoroughly studying the case study to get information on all the entities and their attributes and different relationships that exist between the entities. After identifying the entities, the next...

Read More arrow
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,358,337

Orders

4.9/5

Overall Rating

5,081

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 5/5

440 Order Completed

99% Response Time

Jack Arens

MBA in HRM

London, United Kingdom

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

416 Order Completed

95% Response Time

Tyler Moore

MBA in Accounting

Washington, United States

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

2115 Order Completed

97% Response Time

Kimberley Chen

MPA in Accounting

Singapore, Singapore

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

203 Order Completed

97% Response Time

Richard Alpert

PhD in Psychology

London, United Kingdom

Hire Me

FREE Tools

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

I really got good marks in that assignment, I wish you guys keep working like that to solve student problems with reasonable price. Thanks wkjkljtwoitqw ewrwiouie weu quie weuqwueit

flag

User Id: 401482 - 09 Jul 2020

Australia

student rating student rating student rating student rating student rating

Great work, i will recommend you to my friends and surely use your service again. Great references and APA format.

flag

User Id: 81173 - 09 Jul 2020

Australia

student rating student rating student rating student rating student rating

Worest report, they didn’t know the anything. At least they don’t read the template and waste of money and time

flag

User Id: 451873 - 08 Jul 2020

Australia

student rating student rating student rating student rating student rating

GOOD SERVICE BUT NEED TO WORK ON TIME LIMITS. THAT\'S IT. JUST NEED TO SUBMIT ON TIME.

flag

User Id: 283077 - 08 Jul 2020

Australia

student rating student rating student rating student rating student rating
callback request mobile
Have any Query?