Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This lab maintains a linked list of people, where each node contains a name (one-word names only) and the age of that person. For example,
This lab maintains a linked list of people, where each node contains a name (one-word names only) and the age of that person. For example, a node might contain "BigAl" and 21. The program operates as follows:
- Prompts the user for names and ages, building the list with calls to addFront and addRear
- prints entire list, and then prints only the people in the list who are 21 or older
- prompts the user for a name and then prints the age of that person (if they are in the lsit)
Write the three functions addRear, printLegal, and getAge
#includeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started