Question: Create a linked list based bag implementations to maintain unsigned integers. You can modify the program under ( BagLinked _ List.cpp ) for this assignment.
Create a linked list based bag implementations to maintain "unsigned integers". You can modify the program under BagLinkedList.cpp for this assignment.
Your class should provide followings functionalities:
add insert new item to the bag
average returns average of the numbers of the bag
In the main function, create a bag, then
Add random numbers between and
Then add random numbers between and
After adding each numbers, call average and show the average of items of the bag so far added. This means you will add total of numbers and call average times to see average after each addition.
Note that this assignment should be implemented using linked lists as in BagLinkedList.cpp Do not use any list or linked list library.
Submit a single compilable cpp no header, no screenshot, no readme please file with the following format: "LastnameFirstInitialLastFourDigitsOfCWIDAcpp such as SmithJAcpp
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
