- 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

7th Apr 2020, 6:06 AM
Rutik Santosh Kanade
Rutik Santosh Kanade - avatar
7 Antworten
+ 5
I guess it is "your" task. Please show us your attempt
7th Apr 2020, 6:07 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 2
You didn't do it yet as I see. Try and ask if u struggle
7th Apr 2020, 6:45 AM
Oma Falk
Oma Falk - avatar
+ 1
How does list look like?
7th Apr 2020, 6:08 AM
Oma Falk
Oma Falk - avatar
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
7th Apr 2020, 6:08 AM
Rutik Santosh Kanade
Rutik Santosh Kanade - avatar
0
ahhh try with dictionary/hashmap For each item Item[....]+=price
7th Apr 2020, 6:19 AM
Oma Falk
Oma Falk - avatar
0
Ok
7th Apr 2020, 6:44 AM
Rutik Santosh Kanade
Rutik Santosh Kanade - avatar
- 3
Please send me answer of this code
7th Apr 2020, 6:07 AM
Rutik Santosh Kanade
Rutik Santosh Kanade - avatar