Implement menu-driven program for managing a software store

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

Assignment

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.

Reference no: EM131843538

Questions Cloud

Solve problem using differentiation strategy : An essential factor in successfully using a differentiation strategy is in deciding what customers find valuable. Typically, buyers find the following.
What strategic mistakes do you believe he made : Johnson had a new vision for J. C. Penney and made several changes. In researching his term, what strategic mistakes do you believe he made?
Coefficient of determination : If the coefficient of determination equals 0.63 in a linear regression, then
Identify modules from cpan that can support a gui : Identify modules from CPAN that can support a graphical user interface (GUI), network protocol, and database adapters.
Implement menu-driven program for managing a software store : Write a C++ program to implement a menu-driven program for managing a software store using binary search trees.
Write a cpp program to implement a queue using linked lists : Write a C++ program to implement a queue using linked lists. The program should provide the following functionality: Enqueue data into queue.
What is the average number of unopened student emails : A business school professor answers all the emails sent by his students on a first-come first-served basis. A few hours before the midterm exam.
How much will the restaurant have to increase its service : The management anticipates that the restaurant's demand will double in one year as long as it can provide good service to its customers.
What are the possible variations of linked lists : What are the possible variations of linked lists? Provide brief description of at least 2 of them. What is the difference between an array and a linked list?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Function to compute total motion for single signal input

A control system applies a force to an actuator proportional to the voltage of a signal coming into the control system. It is desired not to allow actuator to quiver back and forth in the presence of small corrections near zero-force point. More f..

  Create a graphical calculator with buttons that can add

create a graphical calculator with buttons that can add subtract multiply divide - sin cos tan clear and modulus.write

  Create a structure that has one variable called value

"Create a structure that has one variable called value and one pointer to the list (making it a linked list). Prompt for 5 values from the keyboard as input and store them in the linked list. Print out the current contents of the list.

  Write a complete c++ program that read

Write a complete C++ program that read in from the key board a string and converts all letters in the string to upper cases. You are not allowed to use topper function.

  Waiting time is the diff b/w the arrival time and simulation

The Server removes a customer from the queue then generates a random number between 1 and 5 to simulate a transaction type i.e. Open a checking account etc.

  Consider an l1 cache with an access time of 1 ns

Suppose that we can change the cache design (size of cache, cache organization) such that we increase H to 0.97, but increase access time to 1.5 ns. What conditions must be met for this change to result in improved performance?

  Write a function named digit_name

Write a function named "digit_name" that takes an integer argument in the range from 1 to 9 , inclusive, and prints the English name for that integer on the computer screen.

  Function odd_fill() that fills all integers between two poin

write a function odd_fill() that fills all integers between two pointers, first and last, with a sequence of odd integers: 1,3,5,7

  Taskimplement class randomint using randomintcpp and

taskimplement class randomint using randomint.cpp and randomint.h.for the randomint class- the function call operator

  Visitor bureau of las vegas

Past surveys reveal that 30% of tourists going to Las Vegas to gamble spend more than $1,000. The Visitor's Bureau of Las Vegas wants to update this percentage.

  Prepare a cc program that uses the pthread library to

prepare a cc program that uses the pthread library to create threads and mutexes to synchronize them. the program must

  Static field holds rent due date for an office

// static field holds rent due date for an office - // rents are due on the 1st

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