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

Questions Cloud

Define catalyzed reaction of carbon monoxide and hydrogen : Methanol, CH3Oh, is produce commercially by the catalyzed reaction of carbon monoxide and hydrogen
Sodium phosphate solution reacts with lead nitrate solution : 10.0 mL of a 0.30 M sodium phosphate solution reacts with 20.0 mL of a 0.20 M lead(II) nitrate solution (assume no volume change).
Estimate with what maximum speed can it go : A certain light truck can go around a flat curve having aradius of 150 m with a maximum speed of 34.5 m/s. With what maximum speed can it go arounda curve having a radius of 88.5m
Estimate how long is your ship : A friend in a spaceship travels past you at a high speed. Hetells you that his ship is 21 m longand that the identical ship you are sitting in is 15 m long. According to your observations, how long is your ship
Write a java application - understanding of arrays : 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.
Estimate what must be the spacing : Three capacitors are connected in parallel. Each has platearea A = 9.00×10-2 m2 and platespacing d = 1.00×10-3 m. What must be the spacing if the threecapacitors are connected in series
Compute the energy stored in the capacitor : A capacitor consisting of two concentric spheresof radius R1 and R2 =3.50·R1 has a capacitance of C = 5.00 pico Faradsand is charged to a potential difference of 86.0 Volts. Calculate the energy stored in the capacitor
Person is standing on the edge of a disk of radius : A person is standing on the edge of a disk of radius R rotating about its axis. the person walks to a postition of R/4. Is a coeficient of static friction of 0.7 enough to keep the person from slipping when they are at a position of r= R/4.
Evaluate how many ml of 6m hcl are needed to hcl : Calculate how many mL of 6M HCl are needed to prepare 100mL HCl solution with a concentration of ~1M.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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