Maintain the set of campers enrolled in camp posanivee

Assignment Help Data Structure & Algorithms
Reference no: EM13678812

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 should 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.

Reference no: EM13678812

Questions Cloud

Compute the maximum rise of temperature in the air : A 10-kg mass traveling at 40 m/s strikes a plunger attached to a piston. The piston compresses 0.2 kg of air contained in a cylinder. If the mass is brought to rest, compute the maximum rise of temperature in the air.
Three narrow concentric rings of radius : Three narrow concentric rings of radius 50 mm, 70 mm and 90 mm are centered at the origin, with the axis of symmetry oriented along the y-axis. The total charge on the inner ring is 1.0 mC, that on the middle ring is -2.0 mC and the charge on the out..
Make a histogram of the data using a bar width : Make a histogram of the data using a bar width
Net electric field produced with particles at squares center : In the figure the four particles form a square of edge length a = 7.40 cm and have charges q1 = 9.32 nC, q2 = -21.0 nC, q3 = 21.0 nC, and q4 = -9.32 nC. What is the magnitude of the net electric field produced with the particles at the square's cente..
Maintain the set of campers enrolled in camp posanivee : 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 enroll..
Economic implications of such location bidding wars : Economic implications of such location bidding wars?
Determine how it uses aggregate planning. : Example of service provider and determine how it uses aggregate planning.
Show both the sheduling and gantt load charts : Show both the sheduling and Gantt load charts.
Kate scored in the 10th percentile rank on an exam : Kate scored in the 10th percentile rank on an exam

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd