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

  Summary of the legal-ethical issue-who can you trust online

What is ethical in B2C and B2B web sites? Who can you trust online? What are the laws in advertising online? Are there different issues with B2B and B2C?

  Discussion of revelation in the assigned

Please summarize Huston Smith's discussion of "Revelation" in the assigned chapter. What is revelation and what kind of God was revealed?

  802 mc ltobjectstandardma912g66 ma912g67gtlook at the

fill-in-the-blank worth 4 points8.02 mc ltobjectstandardma.912.g.6.6 ma.912.g.6.7gtlook at the circle on the coordinate

  Introducing the new procedure with physicians

You have been asked to investigate a new procedure that physicians would like nurses to adopt in the hospital. Discuss the process you would apply to determine whether the procedure falls within the RN scope of practice and how you would go about int..

  Non-spss for each of the following scenarios compute the

non-spss age at onset of dementia was determined for a sample of adults between the ages of 60 and 75. for 15 subjects

  Question 1i describe the main characteristics of a merit

question 1i describe the main characteristics of a merit and a public goodii what do you understand by negative

  Actual variation in between points

What's the actual variation in between points as well as individuals which Kant believe is really essential to their own ethical really worth? Would you concur?

  A continuum of empowerment

A continuum of empowerment, least to most, is as follows:

  Support social arrangements including stratification

In the united states, wealth is distributed more equally than income. as surprising as it may seem, in the united states poor people typically have better health than rich people. The concept ideology refers to ideas that support social arrangements ..

  Basic elements of effective medical office financial policy

The three major elements to critical thinking are logical inquiry, problem solving, and evaluative decision making. In this CheckPoint, What are the basic elements of an effective medical office financial policy?

  Critical reasoning and the author is by jerry cederblom

This assignment is based on critical reasoning and the author is by Jerry Cederblom and David W. Paulsen.This book is the seventh edition.

  Lease manufacturing equipment

You are a management analyst for XYZ aircraft manufacturing company. Your company is considering either to purchase or lease manufacturing equipment.

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