Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

What is electric dipole explain with example

Answered: 1 week ago

Question

What is polarization? Describe it with examples.

Answered: 1 week ago

Question

LO6 Summarize various ways to manage retention.

Answered: 1 week ago

Question

LO3 Define the difference between job satisfaction and engagement.

Answered: 1 week ago