Question: In java Assume that the following information has been recorded about a group of people: name (last name, first name) age (integer) annual income (real)

In java

Assume that the following information has been recorded about a group of people:

name (last name, first name)

age (integer)

annual income (real)

a)Input the number of people in the group (n) and then input the information for each person, storing it in three parallel one-dimensional (1-D) arrays.

b)Write a method which given the three arrays, outputs the information in a formatted form, with suitable headings.

c)Compute and output the following statistics:

the average age

the average income

the name of the youngest person

the income of the oldest person

For each statistic, write a method which takes the necessary arrays(s) and returns the required result.

d)Using Selection Sort, sort the information into alphabetical order by last name. Output a formatted table, using the method from (b).

e)Using Insertion Sort, sort the information into ascending order by age. Output a formatted table, using the method from (b).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!