Question: (Coding done in c++, Virtual Studio) Write a program that maintains a database containing data, such as name and birthday, about your friends and relatives.
(Coding done in c++, Virtual Studio) 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 file 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
Step by Step Solution
3.39 Rating (149 Votes )
There are 3 Steps involved in it
To tackle this problem we will design two classes Person to represent the individual data objects and Database to represent the collection of Person objects using a binary search tree BST The Database ... View full answer
Get step-by-step solutions from verified subject matter experts
