Question: in C++ please The program first reads integer purchasecount from input, representing the number of pairs of inpuls to be read. Each pair has a

in C++ please  in C++ please The program first reads integer purchasecount from input,
representing the number of pairs of inpuls to be read. Each pair
has a string and a character. One Purchase object is created for

The program first reads integer purchasecount from input, representing the number of pairs of inpuls to be read. Each pair has a string and a character. One Purchase object is created for each pair and added to vector purchase List. If a Purchase object's pickup status is equal to N, call the Purchase objects Print0 Ex if the input is? 3 chicken Y egg N yam N then the output is: Purchase: egg, Pickup: N Purchase: yam, Pickup: N Note. The vector has at least one element. Note: The vector has at least one element. The program first reads integer purchasecount from input. representing the number of pairs of inputs to be read. Each pair has a string and a character One Purchase object is created for each pair and added to vector purchaselist. If a Purchase object's. pickup status is equal to ' N, call the Purchase object s Print) Ex. if the input is 3 chicken Y egg N yam N then the outputis: Purchase: egg, Pickup: N Purchase: yam, Pickup: N Note. The vector has at least one element

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!