the language should be C# and please add comments in the code and please provide the correct answer Note: Create Propert
Posted: Fri Jul 01, 2022 5:41 am
the language should be C# and please add comments in thecode and please provide the correct answer
Note: Create Properties/Getters and Setters as needed andprovide proper feedback and messages to the user after eachoperation
1. Create a Product class, that maintains the followinginformation:
2. Create an Inventory class, that uses a Dictionary toimplement the following operations (use product Code as the key,Product object as the value):
3. Create an InvoiceItem class. For each InvoiceItem in theinvoice, it has the following:
4. Create an Invoice class that uses a HashSet that holdsInvoiceItems. Implement the following operations for the Invoice orBill of Sale:
5. Do the following in the main method:
a) Create an Inventory object
b) Add 5 instances of Product objects to the Inventoryobject.
c) Print all products in the Inventory
d) Create an Invoice
e) Create 3 instances of InvoiceItem using 3 instances ofProduct from the inventory retrieved by the Product Code.
f) Add the above 3 InvoiceItem to the Invoice. Test if youcan add the same product twice as a part of two separateInvoiceItem. The application should not allow this.
g) Print the invoice, showing the subtotal and grandtotal.
Note: Create Properties/Getters and Setters as needed andprovide proper feedback and messages to the user after eachoperation
1. Create a Product class, that maintains the followinginformation:
2. Create an Inventory class, that uses a Dictionary toimplement the following operations (use product Code as the key,Product object as the value):
3. Create an InvoiceItem class. For each InvoiceItem in theinvoice, it has the following:
4. Create an Invoice class that uses a HashSet that holdsInvoiceItems. Implement the following operations for the Invoice orBill of Sale:
5. Do the following in the main method:
a) Create an Inventory object
b) Add 5 instances of Product objects to the Inventoryobject.
c) Print all products in the Inventory
d) Create an Invoice
e) Create 3 instances of InvoiceItem using 3 instances ofProduct from the inventory retrieved by the Product Code.
f) Add the above 3 InvoiceItem to the Invoice. Test if youcan add the same product twice as a part of two separateInvoiceItem. The application should not allow this.
g) Print the invoice, showing the subtotal and grandtotal.