Question: The code is c++ can you please specify which code belongs to which file? Thank you so much. Also, can you please take a screen





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(ltem 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.03 ListBag.cpp Post only the code that implements a Dynamically Allocated Link List based bag. 02- 02_List_Bag_Design_Docume The name of this assignment is the name of the file that you should upload. You should not change it by adding a prefix, or suffix. This Design Document should consist of your thoughts and intentions in solving the problem for this module the "Bag." This implementation of the Bag will be a class that uses a template to represent the items stored in an array. Your class should contain an array, not a vector. You must select a size and dynamically allocate that amount of memory from the system heap. The default constructor should not allocate any memory for the array, only when an item is being inserted into the bag should allocation occur. ArrayBag.cpp An array based implementation of the Bag ADT Baginterface.h The header file defining the interface to 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
