Question: Hi, I'm working on this problem now. In each plastic container of Pez candy, the colors are stored in random order. Your little brother likes

Hi, I'm working on this problem now.

In each plastic container of Pez candy, the colors are stored in random order. Your little brother likes only the yellow ones, so he painstakingly takes out all the candies, one by one, eats the yellow ones, and keeps the others in order, so that he can return them to the container in exactly the same order as before -- minus the yellow candies, of course. Write a stack-driven program to simulate this process. You may use any of the stack operations defined in the Stack ADT. IN C++

I have Stack cpp, Stack hpp, and ItemType hpp file.

Can I get main cpp file?

I don't want with using srand.

I want to count each of step like

int eatenCandy

int returnedCandy

int numberOfPicking

like this..

please help me!!

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!