Ay b0sS why dis is not working I am scientist but it don't work so
I don't feel like scientist anymore and now I depressed please help
me be happy. Thank you
You are using switch-case statements incorrectly.
Since we are comparing userItem, in case statements we just have to put different case values of GroceryItem like GR_APPLES, GR_BANANAS, etc.
Below is the fix:
Below is the output produced by the code:
This completes the requirement. Let me know if you have any queries.
Thanks!
Ay b0sS why dis is not working I am scientist but it don't work so I...