Question: IN c# : Write a program to maintain a generic collection of Customer objects in memory. The Customer object should contain the following properties: Name

IN c# : Write a program to maintain a generic collection of Customer objects in memory. The Customer object should contain the following properties:

Name

Address

TotalPurchases

Prompt the user for these values and populate a Customer object that will then be added to a generic collection.

Hint: use a List for storing Customer objects.

Once the user has finished adding all the customers, the program should print all customers along with their information (name, address and total purchase) sorted by TotalPurchases in an ascending order.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!