Question
Don't copy from chegg please You have a grocery list: Item Type Price Weight Orange Fruit 15 1kg Cabbage Vegetable 19 0.9kg Strawberry Fruit 12
Don't copy from chegg please You have a grocery list:
Item | Type | Price | Weight |
Orange | Fruit | 15 | 1kg |
Cabbage | Vegetable | 19 | 0.9kg |
Strawberry | Fruit | 12 | 0.5kg |
Banana | Fruit | 25 | 2kg |
Potato | Vegetable | 35 | 5kg |
Using C# in console:
User Functionality:
- View product list
For user input use next keys bindings(maybe use Console.ReadKey)
- Add product to cart: Numbers(1 to N) when user type a number and press enter, product with same index need to add to cart.
-Order them by price ascending and descending. (User should click A(ascending) and D(descending) to order the prices)
-Order them by type ascending and descending. (User should click E(ascending) and F(descending) to order by type)
-View them in cart with total sum of price and weight. (User should click button V to view cart with total price and weight)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started