answer using C# 1. Product class, that maintains the following information: 2. Inventory class, that uses a Dictionary t

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

answer using C# 1. Product class, that maintains the following information: 2. Inventory class, that uses a Dictionary t

Post by answerhappygod »

answer using C#
1. Product class, that maintains the following information:
2. Inventory class, that uses a Dictionary to implement thefollowing operations (use product Code as the key, Product objectas the value):
3. InvoiceItem class. For each InvoiceItem in the invoice, ithas the following:
4. 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply