David Marks Staff asked 4 years ago

The director of Camp Posanivee is frustrated. Campers are enrolling and withdrawing from camp faster than her primitive filing system can handle, and she has turned to you. You have been offered free meals at the mess hall in return for a program that will help her keep track of who is enrolled for the two-week summer camp. Your program will use a binary search tree to maintain the set of campers enrolled in Camp Posanivee. Your program should not be case-sensitive. Your program will consist of a loop to process commands. The commands s hould come from a text file (say,”camp.txt”). The program quits when the command ‘Q’ is given. Below is a list of commands your program should support: H Help: print a list of commands E name age gender Enroll a new camper (insert) W name Withdraw a camper (delete) D name Display the age and gender of a camper a Print the average age of the campers L List all campers names in alphabetical order S Print the number of boy and girl campers P List all campers names in preorder Q Quit Here name is a string of at most 20 non-blank characters, age is an integer, and gender is either M or F. You may assume command arguments are separated by one or more spaces. Be sure to echo the input, especially for commands that give no output (like E or W), and handle special cases in a clean way (for example, computing the average age of an empty tree should not crash your program)

Free assignment help Com. an online tutoring company, provides students with a wide range of Free assignment help services for students studying in classes K-12, and College or university.

The Expert team of professional online assignment help tutors at Online assignment help .com AU provides a wide range of help with assignments through services such as college assignment help, university assignment help, homework assignment help, email assignment help and online assignment help. Our expert team consists of passionate and professional assignment help tutors, having masters and PhD degrees from the best universities of the world, from different countries like Australia,  United Kingdom,  United States, Canada, UAE and many more who give the best quality and plagiarism free answers of the assignment help questions submitted by students, on sharp deadline

Free assignment help Com. t tutors are available 24×7 to provide assignment help in diverse fields – Math, Chemistry, Physics, Writing, Thesis, Essay, Accounting, Finance, Data Analysis, Case Studies, Term Papers, and Projects etc. We also provide assistance to the problems in programming languages such as C/C++, Java, Python, Matlab, .Net, Engineering assignment help and Finance assignment help.

The expert team of certified online tutors in diverse fields  at free assignment help Com. available around the clock (24×7) to provide live help to students with their assignment and questions. We have also excelled in providing E-education with latest web technology. The Students can communicate with our online assignment tutors using voice, video and an interactive white board. We help students in solving their problems, assignments, tests and in study plans. You will feel like you are learning from a highly skilled online tutor in person just like in classroom teaching. You can see what the tutor is writing, and at the same time you can ask the questions which arise in your mind. You only need a PC with Internet connection or a Laptop with Wi-Fi Internet access.

We provide live online tutoring which can be accessed at anytime and anywhere according to student’s convenience. We have tutors in every subject such as Math, Chemistry, Biology, and Physics, English whatever be the school level. Our college and university level tutors provide engineering online tutoring in areas such as Computer Science, Electrical and Electronics engineering, Mechanical engineering and Chemical engineering.