Design a class to represent the database and another class

Assignment Help Basic Computer Science
Reference no: EM131076222

Repeat Programming Problem 5 of Chapter 16, using the ADT dictionary as the database.

Chapter 16 Problem 5:

Write a program that maintains a database containing data, such as name and birthday, about your friends and relatives. You should be able to enter, remove, modify, or search this data. Initially, you can assume that the names are unique. The program should be able to save the data in a fi le for use later. Design a class to represent the database and another class to represent the people. Use a binary search tree of people as a data member of the database class. You can enhance this problem by adding an operation that lists everyone who satisfies a given criterion. For example, you could list people born in a given month. You should also be able to list everyone in the database.

Reference no: EM131076222

Questions Cloud

Which implementation of adt dictionary would be efficient : Which implementation of the ADT dictionary would be most efficient as a symbol table?
Calculate the best possible approximation : Let X represent the number of individuals who respond to a particular online coupon offer. Suppose that X has approximately a Weibull distribution with a = 10 and b = 20.
Advantage of a real or imagined business : Write a 2 - 3 page paper where you explain the competitive advantage of a real or imagined business.
Relevant information to management : The best metrics are those that provide relevant information to management and add value to the decision making process. Explain how metrics provide a means for qualifying HR programs and activities. Explain how metrics demonstrate the value of HR..
Design a class to represent the database and another class : You should also be able to list everyone in the database.
Calculate the probability that time to failure : Let X denote the time to failure (in years) of a certain hydraulic component. Suppose the pdf of X is  a. Verify that f (x) is a legitimate pdf.
What time interval is required for a message to travel : What approximate time interval is required for a message to travel from Maine to California by radio waves? (Assume the waves can be detected at this range. The distance from Maine to California is approximately 5 000 km.
Foundation research summary form : Using all the information you have found, complete a "Foundation Research Summary Form" for at least one of the foundations you have targeted as a possible donor. (You will find this worksheet on your course Web site in the "Forms, Examples, Resou..
An increasing amount of stress until it snaps : A 12-in. bar that is clamped at both ends is to be subjected to an increasing amount of stress until it snaps. Let Y = the distance from the left end at which the break occurs. Suppose Y has pdf

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Determining the maximize profit

Determine how many items you need to sell to maximize profit (note that Profit = Revenue - Cost and Revenue = Quantity times the price per item.

  Which served as a point-of-sale cash register and terminal

ABC was launched as a retail dive shop with 10 employees in Turkey by Mr Beans. As a small business owner, Beans wanted to offer the e-commerce capabilities of a large firm using a small company's budget. Within a year, he had installed an Ethernet L..

  What is intermodulation distortion

What is intermodulation distortion? What sorts of signals are susceptible to this form of distortion?In addition, identify two situations in which error-free transmission is crucial to business processes. Instructions:•Your research essay should be ..

  Transmitter antenna transmits power

Suppose a transmitter antenna transmits power at 0 db (unity output, i.e., 1W). An identical receiver antenna is used for reception at a distance of 1km.

  Write general set of instructions will allow us to change

Write a general set of instructions that will allow us to change any displayed value (from 0 to 9) to any desired value (from 0 to 9) in the least number of steps. For example, if the displayed value is 1 and the desired value is 0,

  Determine minute at which first customer arrives

Choose a random integer between 1 and 4 to determine the minute at which the first customer arrives. What happens if the arrival is changed from 1 to 4 minutes to 1 to 3 minutes?

  Write a program that takes an integer on the command line

Write a program that takes an integer on the command line, checks that it is not negative or bigger than 200 (in which case a suitable message should be printed and no computation performed) and then prints it out followed by every number

  Internet changes consumer and supplier relationships

Considering a focus in area of E-Commerce (EC), how would you think Internet changes consumer and supplier relationships?

  Declare an integer constant for the size of the array

When the user runs this block of code, the values in the array will be displayed, along with a sum value, the lowest value, and the number of occurrences of the lowest value.

  What is netwitness visualizer

What is Netwitness Visualizer. How can it play a role in a Cybercrime investigation?

  What does power consumption have to do with the fact

What does power consumption have to do with the fact that most modern processors have multiple cores - Which of the given statements about how modern computers are built is/are true?

  Media literacy is in our modern society

How important do you think media literacy is in our modern society?

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