Question: Write a program that populates two Linked Lists with Person objects that are read in from an input file called input.txt . At the end
Write a program that populates two Linked Lists with Person objects that are read in from an input
file called input.txt At the end of execution, one of the lists should contain the youngest people
from the input file, while the other list should contain the oldest people from the input file. Once
the lists are populated, print their contents out as shown in the sample output.
In this question, you are required to utilize the PersonLinkedList class as a library. This means you
must modify the IntLinkedList class library according to the requirements of this question and you
must use the Person class provided with this assignment. Please note that the Person class should
not be edited.
Do not hardcode any of the input data into your code. The purpose of software is that it adapts
to the input. Just because the oldest age in one data set is does not mean that the oldest age for
all data sets is
Input Format:
The input file begins with a single integer which specifies how many records are contained in
the file. Each of the following lines contains the name, gender, and age of a single Person.
Sample Execution:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
