subject

Binary Search Trees (BST). PLEASE code in C++ • Declare and implement a BSTNode ADT with a data attribute and two pointer attributes, one for the left child and the other for the right child. Implement the usual getters/setters for these attributes.
• Declare and implement a BST as a link-based ADT whose data will be Dollar objects - the data will be inserted based on the actual money value of your Dollar objects as a combination of the whole value and fractional value attributes.
• For the BST, implement the four traversal methods as well as methods for the usual search, insert, delete, print, count, isEmpty, empty operations and any other needed.
• Your pgm will have at least 10 Dollar objects created from data specified in your main to seed the tree. • Read the data of your main to create your Dollar database using the BST.
• Also, create an output file to write program output as specified in one or more instructions below.
• Perform adequate data validation when reading data from the user into the tree - if any data item is invalid, ignore the data item and continue to next item but print a message to output (both screen and output file) to indicate which data items were ignored.
• Provide interactivity for the user to add/search/delete nodes from the console after the data has been seeded into the application, including data validation.
• Once the user selects the option to print data or exits the program, the data in the BST should be printed out to both screen and output file in all four traversal methods in the specific sequence of breadth-first, in-order, pre-order, post-order.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:10
3. bob is arguing that if you use output feedback (ofb) mode twice in a row to encrypt a long message, m, using the same key each time, it will be more secure. explain why bob is wrong, no matter what encryption algorithm he is using for block encryption (15 points).
Answers: 3
question
Computers and Technology, 22.06.2019 12:10
Linux is distributed under gnu gpl. why is this important? a. it ensures that only torvalds can profit from the sale of linux b. it prevents unknowledgeable users from downloading programs they don't know how to operate. c. it provides protection for the developers who created linux. d. it states that anyone can copy, modify, and share the program if changes are made public.
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
Which component acts as a platform on which application software runs
Answers: 2
question
Computers and Technology, 23.06.2019 19:00
Acompany is hiring professionals for web designing. the firm is small with few resources. they want employees who possess problem-solving skills and can independently carry out responsibilities. which kind of employee should they select?
Answers: 2
You know the right answer?
Binary Search Trees (BST). PLEASE code in C++ • Declare and implement a BSTNode ADT with a data att...
Questions
question
Mathematics, 03.12.2020 01:00
question
Mathematics, 03.12.2020 01:00
question
Mathematics, 03.12.2020 01:00
question
Mathematics, 03.12.2020 01:00
question
Mathematics, 03.12.2020 01:00
question
Mathematics, 03.12.2020 01:00
Questions on the website: 13722361