Question: Multiple key - value pairs, each representing a person's name and food, are read from input and added to order _ records 1 . First,
Multiple keyvalue pairs, each representing a person's name and food, are read from input and added to orderrecords First, merge orderrecords with orderrecords Then, merge orderrecords with orderrecords Finally, clear orderrecords
Click here for example
Ex: If the input is:
Jan peas
Huy lemon
end
then the output is:
Order records :
Order records :
Kim: 'artichoke', 'Bob': 'grape', 'Jan': 'peas', 'Huy': 'lemon'
Order records :
Ani: 'carrot', 'Kim': 'artichoke', 'Bob': 'grape', 'Jan': 'peas', 'Huy': 'lemon'
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
