Consider the Library Java Project posted on Moodle. Download the file and run the project using Eclipse.
Question:
Consider the Library Java Project posted on Moodle. Download the file and run the project using Eclipse.
You can download Eclipse for Windows using this link:
https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2022-03/R/eclipse-inst-jre-win64.exe
- In the Add Librarian form, the admin can add a librarian by entering invalid data. For example, the name of the librarian can be empty. Your task is to improve the program by implementing the following checks:
- The name of an added librarian cannot be empty.
- The entered password should not be empty. It must have a minimum of 8 characters, including one symbol that is not a digit/letter.
- The City field should be a drop-down box with a single choice from: Al-Ain, Dubai, and Abu Dhabi.
- The contact number should start with 9 and include exactly 10 digits.
If there is a problem in the user entries as described above, the modified program should display a dialog indicating the problem and request the user to re-enter the requested information. The librarian record can only be inserted in the database if the above constraints are satisfied.
Submit the updated/modified Java files on Moodle. Make sure to highlight your changes using commented lines. Also, attach screenshots showing that your program does not allow any of the aforementioned input errors.
2. Implement three refactorings supported by the Eclipse IDE. For each refactoring, provide a brief description and a screenshot of the modified (new) code. In addition, briefly explain any benefit this refactoring provides.
3. Using CodeMR tool or any Java metrics tool, fill out the following table concerning three classes of your choice:
Class Name | LOC | Coupling | Complexity | Size | Lack of Cohesion | CBO | RFC | SFRC | WMC |
For each of the mentioned metric, give a brief definition. Also, what does each of acronyms stand for?
Accounting Information Systems
ISBN: 978-0133428537
13th edition
Authors: Marshall B. Romney, Paul J. Steinbart