2023 In the linked list based bag implementation we demonstrated the functionalities such as add remove | Assignment Collections
Computer Science 2023 C++ Programming Coding
2023 In the linked list based bag implementation we demonstrated the functionalities such as add remove | Assignment Collections
In the linked-list based bag implementation, we demonstrated the functionalities, such as, add, remove, and list. This assignment is to extend the functionalities of the bag with other operations average, min, and max, You need to extend the Bag class (under Wk 2, BagLinked_List.cpp) with the following methods:
-int Bag::min( ), is to find minimum of items of the bag.
-int Bag::max( ), is to find maximum of items of the bag
-float Bag::ave( ), is to find average of the items of the bag.
After expanding the Bag class with these functions, demonstrate their functionalities with a similar to:
Create a bag A with the items 8, 4, 5, 6, 1, 3; and create another bag, B, with the items 4, 6, 9, 2.
Then show that
cout << A.min() << “, ” << A.max() << “, ” << A.ave () ;
cout << B.min() << “, ” << B.max() << “, ” << B.ave () ;
Note that the code shared on D2L is using a struct to keep string variable. You need to change it to keep int variables instead.
We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.