Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ please: Question1: Write only the implementations of the friend list from the following friend.txt file Consider your Node class, Iterator class and all functions
C++ please:
Question1: Write only the implementations of the friend list from the following friend.txt file
Consider your Node class, Iterator class and all functions of the List class, are implemented, except those asked below.
friend.txt
Jacob
Isabella
William
Emma
Jayden
- Create a list by insertBegin() and insertEnd() of the names of the above friend list
- Sort the list in descending order
- Insert a new friend named Olivia at the correct position of the sorted list.
- Create a function using iterator object to print the first three names of the list.
- Overload the [] operator to output any name of the list by listObject[position]
- Implement a function that will randomly pick a friend name from the list.
- What linked data structures you would use if you have 60 candies to distribute in your original friend list. Write a traversal function for each if you have each Node,
void insertEachNode(); already implemented
- Jacob, Isabella to Jayden and then Jayden, Emma to Jacob and so forth
- Jacob, Isabella .to Jayden and to Jacob, Isabella to Jayden and so forth
Step 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