Question: The program first reads integer orderCount from input, representing the number of pairs of inputs to be read. Each pair has a string and an
The program first reads integer orderCount from input, representing the number of pairs of inputs to be read. Each pair has a string and an integer. One Order object is created for each pair and added to vector order ist. Write the Printorders( function in the Deliveries class to call each Order object's Print0. Ex: If the input is: 4 gourd 15 cucumber 17 okra 19 cabbage 23 then the output is: order: gourd, Quantity: 15 Order: cucumber, Quantity: 17 Order: okra, Quantity: 19 Order: cabbage, Quantity: 23 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
