Question: Using C#(Sharp) with visual studio: Make a class and list of books with the following data: { ISBN=1234-45-34-3939, Title = The Long Road, Publisher=New York,
Using C#(Sharp) with visual studio:
Make a class and list of books with the following data:
{ ISBN="1234-45-34-3939", Title = "The Long Road", Publisher="New York", Price=25.00, Copyright=2016 },
{ ISBN="988-65-34-9012", Title = "The Warrior", Publisher="McGraw", Price=55.00, Copyright=2013 },
{ ISBN="8712-45-84-2539", Title = "Yesterday", Publisher="New York", Price=67.00, Copyright=2016 },
{ ISBN="1234-78-99-3478", Title = "Programming Essentials", Publisher="Dalton", Price=35.00, Copyright=2015 },
{ ISBN="8356-89-33-3251", Title = "Hello World", Publisher="Chicago Press", Price=115.00, Copyright=2016 },
Using LINQ Query or LINQ Method to perform and display results for the following:
1. Display ISBN, Title, Publisher for all books where Publisher is New York.
2. Display all fields for all books in descending order by Copyright
3. Display all fields for all books in descending order by Copyright Where Publisher is New York
4. Display ISBN, Title for all books with copyright greater than 2015
5. Order the list in descending order by Title and display the ISBN, Title of the first book in the list
6. Use LINQ to calculate the sum of the price for all books and display average cost
7. Use LINQ to calculate a 3% markup of the price for each book and display the title and markup price.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
