Design and implement class to represent a person

Assignment Help Basic Computer Science
Reference no: EM131979909

C++ program

Implement a dictionary to track the name and birthday of your friends and relatives. Should be able to do the following operations:

- add an entry

- remove an entry

- search the dictionary for the birthday for a given name

- display the name and birthday of every entry in the dictionary

- list everyone in the dictionary who was born in a given month

The search key is the name, and you may assume that the names are unique.

Design and implement a C++ class to represent a person, which contains a name and a birthday at minimum. Additionally, design and implement a C++ class to represent an ADT Dictionary of Person objects. Do not use an existing library class for the dictionary, you must implement your own.

Searching for a person in your dictionary must be an average-case O(log n) operation; adding and removing can be O(n); and the "list everyone who was born in a given month" operation can be an O(n) operation.  With these requirements in mind, it is up to you which type of dictionary to use. You are free to leverage any work done in previous assignments.

You may have a interactive program which supports all of the required operations, or you may hard-code a sequence of operations that fully demonstrates your dictionary.

Reference no: EM131979909

Questions Cloud

Identifying websites that are unsuitable to display : You have been asked to oversee the design of a new system for identifying websites that are unsuitable to display targeting advertisements
Invalidate our means to ensure encrypted transmissions : Mathematical mechanism that makes it work, and what future technologies could invalidate our means to ensure encrypted transmissions.
Hebs strategic goals and objectives : Construct a 10 -20 question survey related to one of these areas customer satisfaction or customer retention to the new HEB Curbside Pickup Services
Constantly using text language in english course : Choose one of these scenarios and comment on the best approach to fix the sentence and the ramifications of the proofreading issues.
Design and implement class to represent a person : Implement a dictionary to track the name and birthday of your friends and relatives. Should be able to do the following operations:
How you as an individual can reduce your impact : How you as an individual can reduce your impact on the environment as it relates to this item or activity. The environmental impacts of that item or activity.
What is economy of scale : 1. What is economy of scale? 2. What is Software as a service (SaaS)?
What are the key characteristics of cloud computing : 1. What is cloud computing? 2. What are the key characteristics of cloud computing?
What do you think are the two most important issues : What do you think are the two most important issues that we face as a society and why? Justify your arguments with examples.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd