Business
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.

answer
Answers: 1

Other questions on the subject: Business

image
Business, 21.06.2019 21:30, sciencecreation87
Prepare journal entries for each transaction and identify the financial statement impact of each entry. the financial statements are automatically generated based on the journal entries recorded. apr. 1 tanner invested $80,000 cash along with office equipment valued at $26,000 in the company in exchange for common stock. apr. 2 the company prepaid $9,000 cash for 12 months' rent for office space. the company's policy is record prepaid expenses in balance sheet accounts. apr. 3 the company made credit purchases for $8,000 in office equipment and $3,600 in office supplies. payment is due within 10 days. apr. 6 the company completed services for a client and immediately received $4,000 cash. apr. 9 the company completed a $6,000 project for a client, who must pay within 30 days. apr. 13 the company paid $11,600 cash to settle the account payable created on april 3.apr. 19 the company paid $2,400 cash for the premium on a 12-month insurance policy. the company's policy is record prepaid expenses in balance sheet accounts. apr. 22 the company received $4,400 cash as partial payment for the work completed on april 9.apr. 25 the company completed work for another client for $2,890 on credit. apr. 28 the company paid $5,500 cash in dividends. apr. 29 the company purchased $600 of additional office supplies on credit. apr. 30 the company paid $435 cash for this month's utility bill.
Answers: 3
image
Business, 22.06.2019 03:30, Geo777
Assume that all of thurmond company’s sales are credit sales. it has been the practice of thurmond company to provide for uncollectible accounts expense at the rate of one-half of one percent of net credit sales. for the year 20x1 the company had net credit sales of $2,021,000 and the allowance for doubtful accounts account had a credit balance, before adjustments, of $630 as of december 31, 20x1. during 20x2, the following selected transactions occurred: jan. 20 the account of h. scott, a deceased customer who owed $325, was determined to be uncollectible and was therefore written off. mar. 16 informed that a. nettles, a customer, had been declared bankrupt. his account for $898 was written off. apr. 23 the $906 account of j. kenney & sons was written off as uncollectible. aug. 3 wrote off as uncollectible the $750 account of clarke company. oct. 20 wrote off as uncollectible the $1,130 account of g. michael associates. oct. 27 received a check for $325 from the estate of h. scott. this amount had been written off on january 20 of the current year. dec. 20 cater company paid $7,000 of the $7,500 it owed thurmond company. since cater company was going out of business, the $500 balance it still owed was deemed uncollectible and written off. required: prepare journal entries for the december 31, 20x1, and the seven 20x2 transactions on the work sheets provided at the back of this unit. then answer questions 8 and 9 on the answer sheet. t-accounts are also provided for your use in answering these questions. 8. which one of the following entries should have been made on december 31, 20x1?
Answers: 1
image
Business, 22.06.2019 09:20, eelebron0905
Which statement best defines tuition? tuition is federal money awarded to a student. tuition is aid given to a student by an institution. tuition is money borrowed to pay for an education. tuition is the price of attending classes at a school.
Answers: 1
image
Business, 22.06.2019 16:40, yovann
Consider two similar industries, portal crane manufacturing (pcm) and forklift manufacturing (flm). the pcm industry has exactly three incumbents with annual sales of $800 million, $200 million and $100 million, respectively. the flm industry has also exactly three incumbents, with annual sales of $500 million, $450 million and $400 million, respectively. which industry is more likely to experience a higher level of rivalry?
Answers: 3
Do you know the correct answer?
Starting Out with C++ 8th Edition Gaddis p1060-1061 #1-7

1. Your Own Linked List Design...

Questions in other subjects:

Konu
Social Studies, 19.05.2020 15:27
Konu
Mathematics, 19.05.2020 15:27
Konu
Mathematics, 19.05.2020 15:27