Objectives • Apply O0 design technique: allocation of classes and responsibilities • Practise 10, Exception handling and

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Objectives • Apply O0 design technique: allocation of classes and responsibilities • Practise 10, Exception handling and

Post by answerhappygod »

Objectives Apply O0 Design Technique Allocation Of Classes And Responsibilities Practise 10 Exception Handling And 1
Objectives Apply O0 Design Technique Allocation Of Classes And Responsibilities Practise 10 Exception Handling And 1 (41.49 KiB) Viewed 19 times
Objectives Apply O0 Design Technique Allocation Of Classes And Responsibilities Practise 10 Exception Handling And 2
Objectives Apply O0 Design Technique Allocation Of Classes And Responsibilities Practise 10 Exception Handling And 2 (24.87 KiB) Viewed 19 times
Objectives Apply O0 Design Technique Allocation Of Classes And Responsibilities Practise 10 Exception Handling And 3
Objectives Apply O0 Design Technique Allocation Of Classes And Responsibilities Practise 10 Exception Handling And 3 (39.38 KiB) Viewed 19 times
Objectives • Apply O0 design technique: allocation of classes and responsibilities • Practise 10, Exception handling and Graphical User Interface. • Adopt good programming practices: modular code, appropriate comments, etc. Programming Task (8 marks) Write a Java program to assist the sales manager to review quotation detail. The GUI program works as follow. Upon start up, only the Load button is enabled to allow user to load the quotation items from a text file. (Please refer to lab 5 for the detail on the Quotationitem class and reading text file.) Quotation Management 0 X Code Quantity Price Discount Total Load Prev Not When the user clicks the Load button, the program will attempt to read the items from the text file into an ArrayList. If the items cannot be read for whatever reason, the program must inform the user accordingly. Below is an example. Quotation Management 0 x Message No quotation record OK Code Quanty Price Discount Total Load Once the items are read into the program (into an ArrayList), the first item will be displayed, and the buttons will be enabled and disabled accordingly. In the example below, the Load button is disabled to prevent repeated data loading. The Prev button is disabled because there is no item before the first item. X

Once the items are read into the program (into an ArrayList), the first item will be displayed, and the buttons will be enabled and disabled accordingly. In the example below, the Load button is disabled to prevent repeated data loading. The Prev button is disabled because there is no item before the first item. Quotation Management D X 21 10 sas Code Quant Price Discount Total Lood The user can browse the items with Prev and Next buttons Quotation Management Code 12 Denty so Price 705 Daca at Total 1725 When the last item is reached, the Next button will be disabled. Quotation Management - 0 Code p Quartty 30 100 Decou 3000 THAM TOW WHAT The program will terminate when the use clicks on the close (0) button at the top, right hand corner. Program Structure Your program will have 3 dasses for more depending on your design) as follow joo 5050 0 X X

When the last item is reached, the Next button will be disabled. Quotation Management Code 04 JQuantity 30 Price 100 Discount 0.05 Total 295.0 Load Prev Next The program will terminate when the use clicks on the close (X) button at the top, right hand corner. Program Structure Your program will have 3 classes (or more depending on your design) as follow. Quotationitem class Please refer to lab 5 for the detail on the class and the data file. Quotation App class This class will extend the JFrame class to provide the GUI for the program. It will make use of the ArrayList and the Quotationitem class to read, store and display the items. TX YY A3 class This class has a main method to create an instance of the QuotationApp class and set the GUI program in motion. Source code comments Please include appropriate header and block comments in the program. Submission Please submit a single Java file (containing the above classes) to Moodle. X
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply