For the bag class in Chapter 3 (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?

A. Change the array declaration from int data[CAPACITY] to double data [CAPACITY and recompile.
B. Change the int to double in the typedef statement and recompile
C. Round each double value to an integer before putting it in the bag.
D. Round each double value to an integer after taking it out of the bag.