Query an Array

Hello,

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

I need an app made in Visual Studio Basic doing a Windows Form Application. In the code also needs to be basic comments on what certain parts of the code are doing. The instructions of the app needing to be created is below.

Thank you in advance!

11.7 (Querying an Array of Invoice Objects) Use the class Invoice provided in the ex11_07 folder with this chapter’s examples to create an array
of Invoice objects. Use the sample data shown in Fig. 11.8 9. Class Invoice includes four properties—a PartNumber (type Integer), a
PartDescription (type String), a Quantity of the item being purchased (type Integer) and a Price (type Decimal). Write an app that performs
the following LINQ queries on the array of Invoice objects and displays the results:
a. Sort the Invoice objects by PartDescription
b. Sort the Invoice objects by Price
C. Select the PartDescription and Quantity and sort the results by Quantity
d. Select from each Invoice the PartDescription and the value of the Invoice (that is, Quantity *Price). Order the results by the value of
the invoice. Name the calculated column InvoiceTotal by using the expression
InvoiceTotal = item. Quantity * item.Price
where item is the name of the range variable in the LINQ query.
e. Using the results of the LINQ query in part (d), select the InvoiceTotals in the range $200 to $500.
Fig. 11.8 Sample data for Exercise 11.7.
Part number
Part description
Quantity
Price
83
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
3
79.50
68
Screwdriver
106
6.99
56
Jig saw
21
11.00
3
Wrench
34
7.50

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER