subject
Business, 17.04.2020 18:48 levicorey846

Starting Out with C++ 8th Edition Gaddis p1060-1061 #1-7

1. Your Own Linked List Design your own linked list class to hold a series of integers. The class should have member functions for appending, inserting, and deleting nodes. Don’t forget to add a destructor that destroys the list. Demonstrate the class with a driver program.

2. List Print Modify the linked list class you created in Programming Challenge 1 to add a print member function. The function should display all the values in the linked list. Test the class by starting with an empty list, adding some elements, and then printing the resulting list out.

3. List Copy Constructor Modify your linked list class of Programming Challenges 1 and 2 to add a copy constructor. Test your class by making a list, making a copy of the list, and then displaying the values in the copy.
1060 Chapter 17 Linked Lists
4. List Reverse Modify the linked list class you created in the previous programming challenges by adding a member function named reverse that rearranges the nodes in the list so that their order is reversed. Demonstrate the function in a simple driver program.

5. List Search Modify the linked list class you created in the previous programming challenges to include a member function named search that returns the position of a specific value in the linked list. The first node in the list is at position 0, the second node is at position 1, and so on. If x is not found on the list, the search should return 1. Test the new member function using an appropriate driver program.

6. Member Insertion by Position Modify the list class you created in the previous programming challenges by adding a member function for inserting a new item at a specified position. A position of 0 means that the value will become the first item on the list, a position of 1 means that the value will become the second item on the list, and so on. A position equal to or greater than the length of the list means that the value is placed at the end of the list.

7. Member Removal by Position Modify the list class you created in the previous programming challenges by adding a member function for deleting a node at a specified position. A value of 0 for the position means that the first node in the list (the current head) is deleted. The function does nothing if the specified position is greater than or equal to the length of the list.

Write code for a single program in C++ that accomplishes the tasks of the above questions:

Create a linked list

Print the list

Copy the list

Reverse the list

Search the list (linear search)

Insert into the list

Remove from the list

Include a driver (the main() function) that displays all of the functionality.

ansver
Answers: 1

Another question on Business

question
Business, 22.06.2019 12:50
You own 2,200 shares of deltona hardware. the company has stated that it plans on issuing a dividend of $0.42 a share at the end of this year and then issuing a final liquidating dividend of $2.90 a share at the end of next year. your required rate of return on this security is 16 percent. ignoring taxes, what is the value of one share of this stock to you today?
Answers: 1
question
Business, 22.06.2019 15:40
Colter steel has $5,550,000 in assets. temporary current assets $ 3,100,000 permanent current assets 1,605,000 fixed assets 845,000 total assets $ 5,550,000 assume the term structure of interest rates becomes inverted, with short-term rates going to 10 percent and long-term rates 2 percentage points lower than short-term rates. earnings before interest and taxes are $1,170,000. the tax rate is 40 percent earnings after taxes = ?
Answers: 1
question
Business, 22.06.2019 17:30
Jeanie had always been interested in how individuals and businesses effectively allocate their resources in order to accomplish personal and organizational goals. that’s why she majored in economics and took on an entry-level position at an accounting firm. she is very interested in further advancing her career by looking into a specialization that builds upon her academic background, and her interest in deepening her understanding of how companies adjust their operating results to incorporate the economic impacts of their practices on internal and external stakeholders. which specialization could jeanie follow to get the best of both worlds? jeanie should chose to get the best of both worlds.
Answers: 2
question
Business, 22.06.2019 17:50
What additional information about the numbers used to compute this ratio might be useful in you assess liquidity? (select all that apply) (a) the maturity schedule of current liabilities (b) the average stock price for the industry (c) the average current ratio for the industry (d) the amount of current assets that is concentrated in relatively illiquid inventories
Answers: 3
You know the right answer?
Starting Out with C++ 8th Edition Gaddis p1060-1061 #1-7

1. Your Own Linked List Design...
Questions
Questions on the website: 13722362