Question
Your task for this part of the lab is to use the standard library to create 4 different linked lists: language C++ 1. Integer list
Your task for this part of the lab is to use the standard library to create 4 different linked lists: language C++
1. Integer list 2. Float list 3. String list 4. A cellphone Contact list including name, telephone number, address, and further notes.
Start:
1) Create the integer, and string lists as empty lists. Add 6 elements each to the lists based on: The numerical order of the integer (between 1 and 10) Alphabetical order of the string list
2) Create one more list of 1000 elements, all of them with the value 78.15.
3) Next, push 0 to the beginning and 15 to the end of the integer list.
4) Insert your name to the middle of the string list (at location 4) using the insert() functions
5) Add 2 to the first integer in the list and subtract 4 from the last integer in your integer list.
6) Iterate thorough your string linked list to print the values in the list.
7) Create and fill the cellphone-contact list with 500 names. Use the Random Number Generator to create First/Family names. For phone numbers, keep the area code 757 and again, use the random number generator to generate phone numbers for the contacts.
8) Lastly, sort the integer list and then reverse it
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