Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

There is a lot of code given to help with the implementation, I placed all the code that was given in a google document if

image text in transcribed

There is a lot of code given to help with the implementation, I placed all the code that was given in a google document if that is okay with the solver. https://docs.google.com/document/d/1yWAHhROAxKHsg7n9tiAiOG2hT3-dRXhwLntDKcKX9uY/edit?usp=sharing

PART B-Linked Bag. 20 points Please change only files: LinkedBag340.cpp and Include.h, no other files. We are to implement 8 small additional functions and 2 helper functions to the Linked Bag. Our programs must produce identical output to the output in the 2 sample runs: Asmt03_Runl.txt and Asmt03_Run2.txt Our Test 9's output must also be identical to the sample output excepts the random values. Our Test 9's random values in our 2 sample runs' output must be different. Updated: 10/29/2018 6:00 AM Please ask questions, if any, during the in-class discussions and demos for this assignment. 1. removeSecondNode340 deletes the second node in the Linked Bag. 2 pts 2. addEnd340 inserts the new node at the end of the Linked Bag. 2 pts 3. getCurrentSize340Iterative counts the number of nodes in the Linked Bag iteratively. 2 pts 4. getcurrentsize340Recursive counts the number of nodes in the Linked Bag recursively. Use 1 helper function: getcurrentsize340RecursiveHelper. 2 pts 5 IMMEDIATE RECURSION: getcurrentSize340RecursiveNoHelper counts the number of nodes in the Linked Bag recursively. This recursive function does not use any helper functions. 4 pts getFrequencyof340Recursive recursively counts the number of times an entry appears in the Linked Bag. Use 1 helper function: getFrequencyof340RecursiveHelper. 2 pts IMMEDIATE RECURSION: entry appears in the Linked Bag. This recursive function does not use any helper functions. 4 pts removeRandom340 removes a random entry from the Linked Bag. 2 pts 6. 7. getFrequencyof340RecursiveNoHelper recursively counts the number of times an 8. PART B-Linked Bag. 20 points Please change only files: LinkedBag340.cpp and Include.h, no other files. We are to implement 8 small additional functions and 2 helper functions to the Linked Bag. Our programs must produce identical output to the output in the 2 sample runs: Asmt03_Runl.txt and Asmt03_Run2.txt Our Test 9's output must also be identical to the sample output excepts the random values. Our Test 9's random values in our 2 sample runs' output must be different. Updated: 10/29/2018 6:00 AM Please ask questions, if any, during the in-class discussions and demos for this assignment. 1. removeSecondNode340 deletes the second node in the Linked Bag. 2 pts 2. addEnd340 inserts the new node at the end of the Linked Bag. 2 pts 3. getCurrentSize340Iterative counts the number of nodes in the Linked Bag iteratively. 2 pts 4. getcurrentsize340Recursive counts the number of nodes in the Linked Bag recursively. Use 1 helper function: getcurrentsize340RecursiveHelper. 2 pts 5 IMMEDIATE RECURSION: getcurrentSize340RecursiveNoHelper counts the number of nodes in the Linked Bag recursively. This recursive function does not use any helper functions. 4 pts getFrequencyof340Recursive recursively counts the number of times an entry appears in the Linked Bag. Use 1 helper function: getFrequencyof340RecursiveHelper. 2 pts IMMEDIATE RECURSION: entry appears in the Linked Bag. This recursive function does not use any helper functions. 4 pts removeRandom340 removes a random entry from the Linked Bag. 2 pts 6. 7. getFrequencyof340RecursiveNoHelper recursively counts the number of times an 8

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

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions

Question

what is a peer Group? Importance?

Answered: 1 week ago