Kindly, do write full C++ code (Don't Copy) Write a program that implements a binary tree having nodes that contain the
Posted: Fri May 20, 2022 5:56 pm
Kindly, do write full C++ code (Don't Copy)
Write a program that implements a binary tree having
nodes that contain the following items: (i) Fruit name (ii) price
per lb. The program should allow the user to input any fruit
name (duplicates allowed), price. The root node should be
initialized to {“Lemon” , $3.00}. The program should be able
to do the following tasks:
create a basket of 15 fruits/prices
list all the fruits created (name/price)
calculate the average price of the basket
print out all fruits having the first letter of their
name >= ‘L’
Write a program that implements a binary tree having
nodes that contain the following items: (i) Fruit name (ii) price
per lb. The program should allow the user to input any fruit
name (duplicates allowed), price. The root node should be
initialized to {“Lemon” , $3.00}. The program should be able
to do the following tasks:
create a basket of 15 fruits/prices
list all the fruits created (name/price)
calculate the average price of the basket
print out all fruits having the first letter of their
name >= ‘L’