Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C sharp please Create a Map class that stores a collection of key/value pairs. The key/value pairs should be implemented using a Pair class that

C sharp please

Create a Map class that stores a collection of key/value pairs. The key/value pairs should be implemented using a Pair class that has the fields and properties First and Second. The Pair class and the Map class must be generic so that the keys can be of any type and the values can be of any type. The Map class should include methods for adding a new key/value pair, searching for a value by supplying the key, returning all the keys in a map, clearing the map in order to start over, and a size method that returns the number of key/value pairs in the map.

Use the Map class in an application of your choosing. You can implement a word dictionary or a phone book or something else that functions like a dictionary

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions

Question

Compute the derivative f(x)=(x-a)(x-b)

Answered: 1 week ago

Question

Knowledge of process documentation (process flow charting)

Answered: 1 week ago