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

  Reader insight into her personality best illustrates

Frida was informed by a professional palm reader: "You generally communicate openly with ors, but you have certain dark secrets that even your closest friends could never guess." fact that Frida was impressed by palm reader's insight into her pers..

  Contexts values code collectivism

Cummunication tendencies of india cultural charateristics (contexts values code collectivism, uncertainty advoiadnace power distance etc)values family interpet describe compare similaritys differences to american

  Attention allocation and avoiding distraction

What prevents an individual from allocating attention the way that he/she intends to?

  Create an ethical code of conduct for those in governance

Create an ethical code of conduct for those in governance, management, and professional staff for any one of these health care organizations:

  In particular mathematicians tend to utilize line graphs

the two types of graphs are helpful in a variety of disciplines. in particular mathematicians tend to use line graphs

  Turbulent and dynamic environmant

How would you manage an organisation manufacturing in a turbulent and dynamic environmant?

  Universal turing machine

Illustrate the term "programming description" of a Universal Turing Machine and by the word "architectural description" of a Universal Turing Machine?

  Options results in lower total interest costs

Which of these options results in lower total interest costs - A 30-year student loan of $120,000 with an annual interest rate of 3% or a 20-year loan of $120,000 with an upfront cost of $5,000 but an annual interest rate of 3.750%?

  Sensory and iconic memory

Sensory memory is a general term that is used to refer to sensory buffers that can retain a large amount of memory, but only for a short period of time.

  What are the primary types of medical research

What are the primary types of medical research, and how does each type functions to help American health care advance over time? Would you personally like to be involved in conducting one of these types of research? Why, or why not?

  Projected total unit workload-patient classification level

Based on susan's projection of patient days, what is the projected total unit workload by patient classification level? What differences do you notice between the projected and the historic total unit workload?

  Define customer satisfaction and customer loyalty regarding

define customer satisfaction and customer loyalty regarding the website. discuss the differences between customer

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