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


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
Get step-by-step solutions from verified subject matter experts
