Write a java application - understanding of arrays

Assignment Help Other Subject
Reference no: EM13565167

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=5 (if the highest digit of your student ID number is less than 5). 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. 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

Reference no: EM13565167

Compare and contrast the court system of the state

Your essay response must be a minimum of 500 words, not counting references listed at the end or repeating of the question, and cited per APA guidelines. A minimum of two

Description of modern democracy

'Democracy is when the people rule the country.' Critically assess whether this statement constitutes an adequate description of modern democracy. Provide evidence with refe

How might you use them to establish your brand

Discuss the social media sites you are familiar with and how you have used them in the past. If you have not used social media sites, how might you use them to establish

Application of knowledge of engineering management

Prepare a project final reporting the design, execution, results and implications of the project and highlight these 6 attributes or elements for the final report - Applicat

Generates a high degree of dialogue in the field

Affirmative action is a topic that generates a high degree of dialogue in the field of HR management. There are strong opinions and perceptions on each side of the debate

Assess the impact on the patient outcome

DQ question: Using a patient situation in which the patient's condition or diagnosis was different than what the presenting signs and symptoms indicated, assess the impac

Which is regional accreditation

Most states also require a specialized accreditation for licensure as an LPC or a psychologist. For counseling licenses, most states honor programs that have the CACREP desi

Probability that this customer will accept the loan offer

Task of classifying a customer that owns a bank credit card and is actively using online banking services. Looking at the pivot table, what is the probability that this cust

Reviews

Write a Review

 
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd