Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

pythonda yazlacak kod burdak rnler yazlcak.Yeni rnler kayd edilecek - The code may be written in C, Java or Python. - Report submission is mandatory.

pythonda yazlacak kod burdak rnler yazlcak.Yeni rnler kayd edilecek image text in transcribed
image text in transcribed
- The code may be written in C, Java or Python. - Report submission is mandatory. You must submit a report in addition to project files. Product Stock Tracking System * All implementation must be done with a binary search tree (BST) data structure. Assignment will not be graded unless done with BST. $ It is forbidden to use ready classes such as the Treeset class under java.util. The product tracking system, keeps the product information and the product quantities in the stock. Each product assumed to be a node in the tree must have the properties in Figure 1: Instructions 1. Load initial data (10 pts): When the program runs for the first time, at least five products must be already inserted. You can call insert function/method and directly insert these products in code behind. 2. Menu ( 8 pts): The program must have a menu that enables the user to select the required operation. Your program must do the operations between instruction 3 and instruction 8 . 3. Insert a new node ( 20 pts): If user selects this operation; she/he is prompted to enter barcode number, product name and product quantity properties. The product record is added to the tree sorted due to the barcode number. If you examine the sample illustration in Figure 2 , all records are placed numerically ordered due to the barcode number. 4. Increase the quantity ( 15pts) : If user selects this operation, she/he is prompted to enter the barcode number and the increment amount. The quantity of the corresponding product is increased by the input amount and updated. The records are printed in order traversal. 5. Decrease the quantity (15pts): If the user selects this operation, she/he is prompted to enter the barcode number, and the decrement amount. The quantity of the corresponding product is decreased by the input amount and updated. The records are printed in order traversal. 6. Print in-order ( 8pts) : Barcode number, product name and quantity of all records are printed according to "in-order traversal". 7. Print post-order ( 8 pts): Barcode number, product name and quantity of all records are printed according to "post-order traversal", 8. Print pre-order (8 pts): Barcode number, product name and quantity of all records are printed according to "pre-order traversal". 9. Report submission ( 8 pts): You must prepare a report for your projects. A sample report file is attached please fill all necessary parts in the report. The screenshots in the report are necessary in case your applications can not run in my computer

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases 11th British National Conference On Databases Bncod 11 Keele Uk July 7 9 1993 Proceedings Lncs 696

Authors: Michael F. Worboys ,Anna F. Grundy

1993rd Edition

3540569219, 978-3540569213

More Books

Students also viewed these Databases questions

Question

What is the relationship between humans?

Answered: 1 week ago

Question

What is the orientation toward time?

Answered: 1 week ago