C++ program to implement a menu-driven program

 

Write a C++ program to implement a menu-driven program for managing a software store using binary search trees. When the program starts, all information about the software packages should be stored in a file named software. The information includes the code, name, version, and price of each software package. Each field will be on a separate line.

When the program starts, it should automatically create a binary search tree with one node corresponding to one software package, and it should include the code of the package. The program should allow the file and the tree to be updated when a new software package arrives to the store and when some packages are sold. Consider the following:

  • New packages should be inserted to the tree and at the end of the file.
  • Sold packages should be deleted from the file and from the tree.

Test your program using the following example:

  • Start with the following content in the file software:
    • 12
    • Photoshop
    • CS5
    • 500
    • 22
    • Office
    • 2010
    • 150
    • 34
    • Visual Studio
    • 2010
    • 600
  • Add the following item to the file and tree:
    • 15
    • Norton Security
    • 2014
    • 50
  • Delete software package with code (2) from the file and the tree.
grammarlytutors
Calculate your essay price
(550 words)

Approximate price: $22

How it Works

1

It only takes a couple of minutes to fill in your details, select the type of paper you need (essay, term paper, etc.), give us all necessary information regarding your assignment.

2

Once we receive your request, one of our customer support representatives will contact you within 24 hours with more specific information about how much it'll cost for this particular project.

3

After receiving payment confirmation via PayPal or credit card – we begin working on your detailed outline, which is based on the requirements given by yourself upon ordering.

4

Once approved, your order is complete and will be emailed directly to the email address provided before payment was made!