Using C# (Sharp) with Visual studio: Make a class of Book with 5 properties - ISBN, author, title, publisher, copyright date In the main method, create 5 instances of the Book class with different data for each Create a LIST and add each of the 5 objects to the LIST Use a foreach loop to display the ISBN, author, title, publisher, and copyright date in the LIST Create a DICTIONARY and add each of the 5 objects (key should be ISBN) Display author, title, publisher, copyright date for each book Create a SEARCH feature: ask the user to type in an ISBN. If the entry matches an item in your dictionary, display the author, title, publisher, and copyright date. If there are no matches, display "ISBN not found". Hint: use ContainsKey Create a REMOVE feature: ask the user to type in an ISBN to remove a book from the list. If the entry matches an item in your dictionary, remove the item and re-display your list. If there are no matches, display "ISBN not found".

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

Using C# (Sharp) with Visual studio:

Make a class of Book with 5 properties - ISBN, author, title, publisher, copyright date

In the main method, create 5 instances of the Book class with different data for each

Create a LIST and add each of the 5 objects to the LIST

Use a foreach loop to display the ISBN, author, title, publisher, and copyright date in the LIST

Create a DICTIONARY and add each of the 5 objects (key should be ISBN)

Display author, title, publisher, copyright date for each book

Create a SEARCH feature: ask the user to type in an ISBN. If the entry matches an item in your dictionary, display the author, title, publisher, and copyright date. If there are no matches, display "ISBN not found". Hint: use ContainsKey

Create a REMOVE feature: ask the user to type in an ISBN to remove a book from the list. If the entry matches an item in your dictionary, remove the item and re-display your list. If there are no matches, display "ISBN not found".

Expert Solution
Step 1

Create a class using class keyword and add properties using get and set accessors. 

List is used to create a collection of any datatype. 

Datatype can be simple or complex type. 

List can grow in size automatically. 

Dictionary is a collection of key-value pairs. 

Dictionary is used to lookup for a value using a key. 

Both list and dictionary are present in System.Collections.Generic namespace.

 

 

 

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 5 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY