Write a cpp program to implement a menu-driven program

Assignment Help C/C++ Programming
Reference no: EM131492159

Assignment: Binary Search Tree- Data structure U5

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:

o 12
o Photoshop
o CS5
o 500
o 22
o Office
o 2010
o 150
o 34
o Visual Studio
o 2010
o 600

• Add the following item to the file and tree:

o 15
o Norton Security
o 2014
o 50

• Delete software package with code from the file and the tree.

Reference no: EM131492159

Questions Cloud

Detail the events that led to black wednesday : Discuss in detail the events that led to 'Black Wednesday'.
How is ethernet network interface card identified in linux : List the command to change the IP address of the Ethernet0 network interface to 10.10.20.5 with a subnet mask of 255.255.255.0.
What is minimum expected annual return for stock : what is the minimum expected annual return for Stock 3 that will enable Michele to achieve her investment requirement?
What is the expected dividend yield for portmans stock today : Portman Industries just paid dividends of $3.36 share. What is the expected dividend yield for Portman's stock today?
Write a cpp 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. Delete software package with code from the file.
What is the dollar amount of income : what is the dollar amount of income that she needed to have to reach her objective?
When constant growth begins and current intrinsic value : determine Goodwin's horizon value at the horizon date-when constant growth begins-and the current intrinsic value.
What command shuts down all network interfaces : What command can be used to verify that a network interface is down?
What is dollar amount of dividends : What is the dollar amount of dividends that he received for owning the stock during the year?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Interface that manages scores from surfing contest

Create a program with a menu driven interface that manages the scores from a surfing contest. At start up, your program should read the attached file, pick the score out of each line and append it to a list of scores.

  Write program on book a hotel room

Book a hotel room: Prompt the user for their name. If the name is found, display the GuestNos and Addresses for all matches. If the name is not found, prompt the user for their address and insert a new record; display the GuestNo

  Write a program to find the average value

Write a program to find the average value, the largest value, and the smallest value of a set of numbers supplied as input from the keyboard. The number of values in the data set must be in the range 0 to 20, inclusive.

  Program to check compatibity for matrix multiplication

Write down program in C++ for matrix multiplication. Program must accept dimension of both matrices to be multiplied and check for compatibity.

  Program loops and if conditions write a program that

program loops and if conditions write a program that requests a password after the authorprogram information is

  Attribute information about an array of floating point

Write a program that contains a main function and three other functions that will return various attribute information about an array of floating point

  Can you have an array of arrays

What are the purposes of the following three functions? How would you use them in your programs? Hint: In relation to buffers.

  Calculates how much a little league baseball team spent

Prepare a program that calculates how much a little league baseball team spent last year to purchase new baseballs.

  Write function that create pascals triangle in square matrix

Write and test a function that creates Pascal's Triangle in the square matrix that is passed to it. For example, if the two-dimensional array a and the integer 4 were passed to the function.

  Consider the subsequent selection statement where x is an

consider the subsequent selection statement where x is an integer test score between 0 and 100.input xif 0 lt x and x

  Create a class named gamer that has a field for name

Create a class named Gamer that has a field for name(string) and a field for points(int).

  Create a program that verifies the strength of a password

Create a .cpp program that verifies the strength of a password that a user is entering is strong (complex/secure) enough. In the main area of the program, prompt the user to enter a password.

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