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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!