Need help with your Discussion

Get a timely done, PLAGIARISM-FREE paper
from our highly-qualified writers!

glass
pen
clip
papers
heaphones

Tarrant County College District C++ Worksheet

Tarrant County College District C++ Worksheet

Tarrant County College District C++ Worksheet

Description

  1. Load the attached code into a project. Both files will be need to be modified and submitted for this assignment.
  2. Compile the existing code as-is. The LinkedList.h file should be in the header section of the Solution Explorer.
    1. LinkedListHeaderPlacement.png
  3. Test Step – In the Driver13_3.cpp file
    1. Display “*** Test Step 3 ****”
    2. Use the insertNode() method to load 5 unique the integers to the linked list.
    3. Display the the contents of the linked list.
      1. The displayed results are expected to be in ascending order but can be inserted in any order.
  4. Modify the insertNode() method
    1. Add a boolean parameter to indicate only unique inserts are allowed. This parameter should have a default value of false.
    2. Change the return type of this method to be a bool. It should return false when (a duplicate already exists and the parameter is true) or return true when an insert occurs.
      1. Do not do a “pre-search” for this value. Follow the insert code but stop the insert if a match is found.
  5. In the Driver13_3.cpp file,
    1. Display “*** Test 5 ****”
    2. Use the insertNode() method and pass it a unique number and include the 2nd parameter of true.
    3. Use the insertNode() method and pass it a number already given and include the 2nd parameter of false.
    4. Display the contents of the linked list. The number from Step 5C should be displayed twice.
  6. Create a clear() method in the LinkList template.
    1. This method should remove all the entries in the linked list.
    2. It should set the head to nullptr.
    3. Comment this method in way similar to existing methods.
    4. Modify the destructor to call this method in lieu of it’s own code.
      1. The class destructor should still display “Linked List Destructor has completed.”
  7. Modify the deleteNode() method.
    1. Change this method to return a bool to indicate that a delete was done (true) or not done (false).
    2. Change the method to correctly return the expected result.
  8. In the Driver13_3.cpp file
    1. Display “*** Test 8 ****”
    2. Call the linked list clear() method
    3. Use the insertNode() method to load the integers 101, 202,303,404,505 to the linked list
    4. Use the deleteNode() method to delete number 101. Report if successful.
    5. Use the deleteNode() method to delete number 998. Report if successful.
  9. Allow the code to end normally. It should report “exited with code 0” in the console window as usual (No special code for this).
    1. The provided code should display “Linked List Destructor has completed.” per the LinkedList destructor.
  10. Complete all TODO items in the Driver13_3.cpp program and remove the TODO indicators once completed.

Deliverables include the modified Driver13_3.cpp, the modified LinkedList.h and a Screen Shot of the generated results. Content may be zipped.

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Order Solution Now

Our Service Charter


1. Professional & Expert Writers: Eminence Papers only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Eminence Papers are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Eminence Papers are known for the timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Eminence Papers, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

We Can Write It for You! Enjoy 20% OFF on This Order. Use Code SAVE20

Stuck with your Assignment?

Enjoy 20% OFF Today
Use code SAVE20