Grocery Shop Database Console App
- Ask client's name and greet him or her by name.
- Determine if this client exists in the database. It's up to you how you identify him or her: - by first name & last name - by personal code - by client card number
- If client doesn't exist, add him or her to the database (remember to save the changes!)
------- Already implemented ------------------------
- Create a new Shopping Cart and let your client do the shopping.
- Show the contents of the current shopping cart together with the its total price.
- Add current Shopping Cart to the list of client's shopping carts and save the changes to database.
- Determine, how many times your current client has visited the shop (hint: count of his/her shopping carts' list)
- If it's not the client's first time to visit the shop, ask him/her, if he/she wants to see his/her shopping history. If yes, show all his/her shopping carts together with contents and total prices.
- Thank your client for visiting and wish him or her a nice day!