Question: 9 : 2 4 3 5 Project 3 Queens College Computer Science Department CS 2 1 2 - Fall 2 0 2 4 - Project
:
Project
Queens College
Computer Science Department
CS Fall Project
Assigned: November
Due: November
Cutoff: November
Create an Exception for Illegal Appliances
Create an Exception called IllegalApplianceException which extends IllegalArgumentException. Put your instantiation of an Appliance in a try block, and catch the IllegalApplianceException which should be thrown if the serial number is invalid. A valid serial number is W followed by capital letters or digits. Write an is Valid method which uses a regular expression to check for validity. If the serial number is not valid print it to the console.
Modify the GUI
Include in your GUI a File menu with the menu items Open and Quit. The Open menu item should allow the user to choose a file for input as shown in lecture As said in lecture, when you go to get the name of the chosen file, be sure to use the getAbsolutePath method, not the getName method.
You may use any structure you want to store and sort the Appliances your own linked list, an arraylist, a Java linkedList, etc.
Display the sorted appliances in the GUI just as in project
Submitting the Project.
You should now have at least the following files to submit for this project:Submit a zip file.Create a zip file called Projectzip and submit it through Brightspace by the due date to receive full credit.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
