Starting from:

$25

CSCI3901-Lab 1 Basic Problem Solving Solved

In this lab, you will practice the process of problem solving and coding when you may not have all of the details of the problem. For some, this will seem easy. For others, there will be some challenge to grasp everything within the lab time.

Working independently or in groups of two students, you will write code to implement a Map data structure in Java.

A Map is a structure that stores key-value pairs, meaning that you want to store and retrieve pairs of data. The first bit of data is called the key. The second bit of data is called the value. Given the key, you can retrieve the value associated with that key. Keys are unique to the Map (meaning that you can’t have two entries with the same key) while values are not unique (meaning that you can have two keys that map to the same value).

In addition to a constructor, you should implement the methods get and put for your Map.

In your implementation, you cannot use any of the existing Java Map classes.

Preparation

Ensure that you have your Integrated Development Editor (IDE) for Java installed.

More products