Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 3. The following question is on screenshots. It includes only one question. Need urgent and fast help. Question 3 2020 Write a Java GUI

Question 3. The following question is on screenshots. It includes only one question. Need urgent and fast help.

image text in transcribedimage text in transcribedimage text in transcribed
Question 3 2020 Write a Java GUI application that will keep track of a company's products. The application must (Marks: 40) contain the product id, product name and the product price. Q.3.1 On the form, create three text fields to capture the product details and a non- editable text area to display the product details. Create a submit button that when clicked will save the product details to a Products.txt file. Also include a search button that will allow a user to search for a product based on the product id. Q.3.2 Create a sequential file (products.txt) that contains data for the following fields: The product id The product name The product price Q.3.3 Load the product details from the Products. txt file. Populate the text area on form load and whenever a new product is saved. Sample Screenshot: Products Form X Products on file: Product ID: 10113 ID: 10113 NAME: Addidas Tennis Shoes PRICE: R 825 Product Name: Addidas Tennis Shoes ID: 10112 NAME: Puma Tennis Shoes PRICE: R 750 ID: 10111 NAME: Nike Tennis Shoes Product Price: 825 SEARCH SUBMITSample Products Text File: X 0 - "Products.txt - Notepad File Edit Format View Help 10111 Nike Tennis Shoes 950 10112 Puma Tennis Shoes 750 10113 Addidas Tennis Shoes 825 Ln 1, Col 1 100% Windows (CRLF ) UTF - 8 Q.3.4 When the search button is clicked, prompt the user with an input box to enter in the product id. Based on the product id, display the product name and product price. Input X Enter the Product ID n. 10111 OK Cancel X Message . H Nike Tennis Shoes, R 950 OKMarking Guideline 2020 GUI form with all objects: Mark | Examiner | Moderator Excellent: Correctly implemented - 8 marks Good: Correct but just minor errors - 4 to 7 marks Developing: Attempted but not correct - 1 to 3 marks Poor: Not attempted - 0 mark Sequential file created and populated Excellent: Correctly implemented - 4 marks Good: Correct but just minor errors -3 marks Developing: Attempted but not correct - 1 to 2 marks Poor: Not attempted - 0 mark Populate the text area with the product details: 10 Excellent: Correctly implemented - 10 marks Good: Correct but just minor errors - 5 to 9 marks Developing: Attempted but not correct - 1 to 4 marks Poor: Not attempted - 0 mark Correctly loads the product details from the text file: 10 Excellent: Correctly implemented - 10 marks Good: Correct but just minor errors - 5 to 9 marks Developing: Attempted but not correct - 1 to 4 marks Poor: Not attempted - 0 mark Functionality to search for a product based on a product id 8 Excellent: Correctly implemented - 8 marks Good: Correct but just minor errors - 4 to 7 marks Developing: Attempted but not correct - 1 to 3 marks Poor: Not attempted - 0 mark 40 TOTAL

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

Step: 3

blur-text-image

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

Unity From Zero To Proficiency Beginner A Step By Step Guide To Coding Your First Game

Authors: Patrick Felicia

1st Edition

1091872023, 978-1091872028

More Books

Students also viewed these Programming questions