- 2
You are the manager of a supermarket. You have a list of items together with their prices.
Your task is to print each item_name and net_price in order of its first occurrence. Take Input from User
7 Respostas
+ 5
I guess it is "your" task.
Please show us your attempt
+ 2
You didn't do it yet as I see.
Try and ask if u struggle
+ 1
How does list look like?
0
Sample Input:
BANANA FRIES 12
POTATO CHIPS 30
APPLE JUICE 10
CANDY 5
APPLE JUICE 10
CANDY 5
CANDY 5
CANDY 5
POTATO CHIPS 30
Sample Output:
BANANA FRIES 12
POTATO CHIPS 60
APPLE JUICE 20
CANDY 20
0
ahhh try with dictionary/hashmap
For each item
Item[....]+=price
0
Ok
- 3
Please send me answer of this code