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

  Flocculation rates for a monodisperse suspension

Develop an expression for the ratio of orthokinetic and perikinetic flocculation rates for a monodisperse suspension

  Different aspects of digital photography composition

I need help and I'm low on sources for my speech on Different Aspects of Digital Photography Composition. I need to find source material preferably from Beginners and instructional manuals for beginner digital photographers.

  Description of what information the effect size

a brief description of the real-world situation or problem you selected to address, the independent and dependent variables you would study, the statistical null and alternative hypotheses.

  Explain how you came to realize that your initial perception

Think of a time when your senses deceived you. Describe what you thought you saw, heard, or felt, and then e you in the past? Explain how you came to realize that your initial perception was incorrect. Do you think it is reasonable to rely on your se..

  Law regarding union recognition for public employees

How does the law regarding union recognition for public employees in this state compare with the NLRA rules regarding union recognition for private-sector employees?

  It is believed that gays and homeless people tend to abuse

it is believed that gays and homeless people tend to abuse alcohol more than straight heterosexual and non-homeless

  Differences between deming’s theory and crosby’s theory

What are the major differences between Deming’s theory of profound knowledge and Crosby’s theory for zero defects? Which one is more suited for healthcare?

  Describing the intentional infliction of emotional distress

George sues Jerry under a theory of intentional infliction of emotional distress, alleging all of these actions. Jerry moves to dismiss the complaint on the grounds that even if everything George alleges in the complaint is true.

  Examine how the chemical tryptophan

A researcher would like to examine how the chemical tryptophan, contained in foods such as turkey, can affect mental alertness. A sample n=19 college students is obtained and each student's performance on a familiar video game is measured before a..

  Ralph waldo emerson''s transcendentalist actions in the 1800s

What were the consequences of Ralph Waldo Emerson's transcendentalist actions in the 1800s?

  What are thoughts on introducing innovation into framework

What are your thoughts on introducing innovation into the framework - create quality improvements or efficiency if the current framework is enhanced.

  First-generation star systems

About 2% of our solar nebula consisted of elements besides hydrogen and helium. However, the very first generation of star systems in the universe probably consisted only of hydrogen and helium.

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