Question: Create an Invoice class which includes four properties - a PartNumber ( type int), a PartDescription ( type string), a Quantity of item being

Create an Invoice class which includes four properties - a PartNumber ( type int), a PartDescription ( type string), a Quanti 

Create an Invoice class which includes four properties - a PartNumber ( type int), a PartDescription ( type string), a Quantity of item being purchased ( type int) and a Price( type decimal). Use the following sample data for Invoice class objects: Part Number Part Description Quantity Price 87 Electric Sander 7 57.98 24 Power Saw 18 99.99 7 Sledge Hammer 11 21.50 77 Hammer 76 11.99 39 Lawn Mower 79.50 68 Screw Driver 106 6.99 56 Jig saw 21 11.00 Perform the following queries on the array of Invoice objects and display the results: a) Use LINQ to select from each Invoice the PartDescription and value of the Invoice ( i.e. Quantity * Price ). Name the calculated column as InvoiceTotal. Order the results by invoice value in ascending order. [Hint: use let ] b) Part description of the part who has highest quantity. c) Average price of the parts.

Step by Step Solution

3.54 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

class Invoice public int PartNumber get set public string PartDescription get set public int Quantit... View full answer

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 Operating System Questions!