Question: Q 1 . A strictly binary tree is defined as a tree whose nodes are either leaf nodes or have 2 children. Write a recursive
Q A strictly binary tree is defined as a tree whose nodes are either leaf nodes or have
children. Write a recursive member function for the BinaryTree class that returns true if a tree
is a strictly binary tree, false otherwise.
Q Write a program to find the missing passengers of a flight to be used in an airport. First,
read the information of passengers id and name who have bought a ticket for a certain flight
from a text file and insert them into a Binary Search Tree sorted according to passenger
names. A samble text file is shown below:
Then from the keyboard, read the names of passengers who have boarded the plane and
delete them from the Binary Search Tree. Continue this process until is inputted. To
announce the missing passengers at the airport, output the ids and names of all the
passengers alphabetically who have not yet boarded the plane as seen in the sample run.
Sample Run:
Enter passenger names who have boarded the plane ending with a :
GulDemir
AhmetTurkoglu
Missing Passengers:
AhmetOzkan
CemilUzun
HEADER FILES...
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
