Question: Write the InputOrders() function in the Deliveries class. Within InputOrders(), use cin to read pairs of inputs, integer currQuantity and string currFood, until -999 is

 Write the InputOrders() function in the Deliveries class. Within InputOrders(), usecin to read pairs of inputs, integer currQuantity and string currFood, until

Write the InputOrders() function in the Deliveries class. Within InputOrders(), use cin to read pairs of inputs, integer currQuantity and string currFood, until -999 is read from input. Create a Order object with currQuantity and currFood as arguments and append the object to vector orderList. Ex: If the input is 7 mango 20 papaya 22 bamboo 15 cake 11 okra 999, then the output is: Order quantity: 7, Food: mango Order quantity: 20, Food: papaya Order quantity: 22, Food: bamboo Order quantity: 15, Food: cake Order quantity: 11, Food: okra

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!