Hi guys. I encountered this scenario online and I couldn't decipher what to do to make it work. I hope you could help me out..
So say for example you have a kiosk on your store and you want to program it for your customers. When a customer press number 1, he/she would be prompted to enter the product brand, model, price, and other specifics so that the system can store it and afterwards process it for the customer. However, not until the customer types in "-none", the system would continue asking him/her about the product. Also, there's a certain menu for the seller (the store) to look up the customer's entry by brand, price etc.
My question is, how should I tackle this? I think it's like putting input("Enter brand: ") into a certain variable and then attaching that variable to a class? However that would be complicated because there's also a menu for the seller wherein those things should be neatly grouped so the search can proceed. Sorry if it's kind of unclear but here's another analogy of it:
-----
[1] Enter the product that you want:
[a] Brand:
Price:
[c] Feature:
Do you want to add items to your cart? Y/N
-----
Now that's for the customer. Here's for the seller:
-----
[a] Search by brand
Search by price
[c] Search by feature
-----
So for example if I'm the customer and I enter "Skittles", and then I again enter "Snickers", it should be grouped neatly so when I use the seller mode, it can proceed smoothly too. I'm thinking of using a dictionary but we have 2 values: price and feature. How can I proceed with a specific search if it's grouped in a dictionary??
Sorry guys, total noob here.. Please help me.. Thank you so much...