Question: Develop an application to manage the product details using a binary file. Your application should savethe information of each field of the product using binary

Develop an application to manage the product details using a binary file. Your application should savethe information of each field of the product using binary format and each record should be of the samesize. Possible operations and sample GUI is provided for your reference.

Develop an application to manage the product details using a binary file.Your application should savethe information of each field of the product usingbinary format and each record should be of the samesize. Possible operationsand sample GUI is provided for your reference. Problem: (15 points) Develop

Problem: (15 points) Develop an application to manage the product details using a binary file. Your application should save the information of each field of the product using binary format and each record should be of the same size. Possible operations and sample GUI is provided for your reference. Design the Main Product GUI that looks like as shown below: - File menu has "Exit" menu item, so when user selects this option, it will terminate the application. - Product menu has two menu items: - "Add/Update" menu item, so when user selects this option, it will display Add/Update window to the user (shown below). - "Find/Display" menu item, so when user selects this option, it will display the Find/Display window to the user (shown below). Program the buttons to perform following operations: - Add - Should add the information of new product to the file. Product ID should be unique, quantity in hand and unit price should be number and above 0 and name is required. (1 point) - First - Should read the first record stored in the file and display the details of it in the controls. (1 point) - Previous - if possible, should read the previous record to the current record stored in the file and display the details of it in the controls. (1 point) - Next - if possible, should read the next record to the current record stored in the file and display the details of it in the controls. (1 point) - Last - Should read the last record stored in the file and display the details of it in the controls. (1 point) - Update - should update the information of currently displayed record on the GUI. (1 point) Program the Find/Display button to perform following operation: - Depending upon which radio button is selected, it should read the product details from the file and display in the JTable/JTextArea. - If "All" radio button is selected, it should display all the products stored in the file. (1 point) - If "Keyword" radio button is selected, it should display all the products stored in the file which contains the specified keyword in their name. (1 point) - If "Price Range" radio button is selected, it should display all the products stored in the file which has the price specified between to and from (1 point) 1. How is the new product added to the file? (1 point) 2. How you made sure the product ID is unique? (1 point) 3. How retrieved the previousext record of the current record from the file? (1 point) 4. Explain the updating process of current record. (1 point) 5. How you extracted the records based upon the keyword in the name of the product? (1 point) 6. How you retrieved the first and last record from the file? (1 point)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!