Question: Build an application which populates Binary Tree and then saves all nodes data into a file data.dat by using object IO. Each node should have
Build an application which populates Binary Tree and then saves all nodes data into a file data.dat by using object IO. Each node should have following data
Patient Name
Father Name
Age
NIC(Numeric)
Address
Disease
Doctor Name
Patient ID(Numeric).
NIC and patient ID should be unique. Choice should be given to the user either build Binary Tree on basis of NIC or Patient ID. Traversal using DFS and BFS should be implemented as well. The binary tree should be built from top- down, left-right approach.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
