Question: The code is in C++. canyou please explain in details. thank you. 02.01 ListBag - Embedded Lab Avaliable from: Monday, 8 February 2021, 8:05 AM
02.01 ListBag - Embedded Lab Avaliable from: Monday, 8 February 2021, 8:05 AM Due date: Monday, 22 February 2021, 8:05 AM Requested files: Baginterface.h, ArrayBag.cpp, Bag_test.cpp (Download) Type of work: Individual work Create a class ListBag derived from Baginterface which implements the Bag Abstract Data Type (ADT). BagInterface.h defines the following public interface functions: 1. Bago - Create and Empty Bag 2. void additem(item item) - add an item to the Bag 3. boolean isEmpty0 - indicate whether or not the bag is empty 4. int size() - return the number of items in the Bag Once you have created your bag, print a report of the bag size. There is a binary file of signed 32-bit integers in Little- Endian format. Your test program must open this file and insert all the integers into a bag using the interface functions. Print a report of the gag size - only the size nothing else. 02.01 ListBag - Embedded Lab Avaliable from: Monday, 8 February 2021, 8:05 AM Due date: Monday, 22 February 2021, 8:05 AM Requested files: Baginterface.h, ArrayBag.cpp, Bag_test.cpp (Download) Type of work: Individual work Create a class ListBag derived from Baginterface which implements the Bag Abstract Data Type (ADT). BagInterface.h defines the following public interface functions: 1. Bago - Create and Empty Bag 2. void additem(item item) - add an item to the Bag 3. boolean isEmpty0 - indicate whether or not the bag is empty 4. int size() - return the number of items in the Bag Once you have created your bag, print a report of the bag size. There is a binary file of signed 32-bit integers in Little- Endian format. Your test program must open this file and insert all the integers into a bag using the interface functions. Print a report of the gag size - only the size nothing else
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
