Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ For this assignment you must write a program that implements a membership directory for the BINGO. The membership directory should be implemented as a

C++

For this assignment you must write a program that implements a membership directory for the BINGO. The membership directory should be implemented as a Binary Search Tree. The directory should be able to create/delete member accounts, edit a members information, search for a specific member, display a list of members, and output list of members and their information to a file in post-order (the file format is described below).Every entry in the membership directory should have the following properties: a member account name (one word), the members first, last, and middle names, the number of games won, and the number of games lost. Use the account name to sort the BST. Your program should implement a text-based interface capable of handling the following commands: exit exits the program load-parses the contents of the file as if they were entered from the command line save -saves the contents of the membership directory into the specified file using the format described below; output the information in post-order directorydisplays a list of member account names; use an in order traversal displaydisplays the information for the given member clearclears the membership directory; this sets the BST to empty. add -adds a new member to the directory; create the member with default information and the specified account name set name -set the members name to last, first middle. Last and first name is required, the middle name is optional. set wins -set members wins to wins.set losses -set members losses to losses. remove -remove the specified member.

The save file should have the following format:

# of Entries Member Account Name

1Last, First Middle

Wins Losses

Member Account Name 2

Last, First Middle

Wins Losses

Member Account Name 3

Last, First Middle

Wins Losses

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

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions

Question

2. Identify the employees who are included in the plan.

Answered: 1 week ago

Question

7. Discuss the implications of a skill-based pay plan for training.

Answered: 1 week ago