Question: For the bag class (using a fixed array and a typedef statement) what steps were necessary for changing from a bag of integers to a

For the bag class (using a fixed array and a typedef statement) what steps were necessary for changing from a bag of integers to a bag of double values? Change the array declaration from O int data[CAPACITY] to double data[CAPACITY] and recompile. Change the int to double in the typedef statement and recompile. Round each double value to an integer before putting it in the bag. Round each double value to an integer after taking it out of the bag. 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
