Run the program written for exercise 7a three times on the


a. Remove all the cout statements from the constructor, destructor, and flip() methods in the Coin class given in Exercise 5. Then combine the modified class with the main() function given in Exercise 6a to produce an executable program.

b. Run the program written for Exercise 7a three times. On the first run, have your program simulate flipping the coin 10 times; the second run, 100 times; and the third run, 1000 times. Make sure each created object is deleted in the while loop.

c. What problem can occur if each created object isn't deleted in your program? Do you think this problem is serious?

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Run the program written for exercise 7a three times on the
Reference No:- TGS02192035

Expected delivery within 24 Hours