Question: The code is C++ if you need more information, please let me know. Thank you so much 01. ArrayBag - Embedded Coding Lab Requested files:



01. ArrayBag - Embedded Coding Lab Requested files: Baginterface.h, ArrayBag.cpp, Bag_test.cpp (Download) Maximum number of files: 8 Type of work: Individual work Create a class ArrayBag derived from BagInterface which implements the Bag Abstract Data Type (ADT). BagInterface.h defines the following public interface functions: 1. Bag) - Create and Empty Bag 2. void additem(item item) - add an item to the Bag 3. boolean isEmpty() - 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. BagInterface.h The header file defining the interface to the Bag ADT ArrayBag.cpp An array based implementation of the Bag ADT Bag_test.cpp This source component includes the main() function, creates and tests instances of the Bag
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
