Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions

Question

EXPLAIN the recruitment process.

Answered: 1 week ago

Question

When there was controversy, was it clear who had the final say?

Answered: 1 week ago