Question: Create a solution that accepts an integer input identifying how many Items are to be purchased from a vending machine, followed by an equivalent number
Create a solution that accepts an integer input identifying how many Items are to be purchased from a vending machine, followed by an equivalent number of string inputs representing the vending machine snack selections, The following dictionary snacks lists available snack selections as the key with the cost per selection as the value.snacks A: AA: BT: B: B; CT: C: : Output the total cost of the purchased snacks to two decimal places
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
