Object Oriented Programming

0 comments


Weighting: 100%
Instructions:
This is an Open Book assessment. Any resources used in answering the questions should be referenced in the
code in accordance with the coding referencing guidelines discussed in class and set out on the module
Moodle page. All work submitted should be your own. Conferring with others is not permitted.
Answer questions 1 to 4 using the category and functionality assigned to you according to your student
number. Read the instructions for identifying these carefully. Instructions for submission are outlined at the end of the paper.

Questions:
For this assessment you will be assigned a category and an additional piece of functionality according to your student number. Your task is to plan, develop and test an application which enables a user to catalogue a particular category of items.
Each Category has two sub-categories. Details of what information should be catalogued for each category is available in Appendix A. Your application should have a full Swing GUI which allows the user to choose a subcategory and enter information relevant to it.
The catalogue should have functionality enabling the user to add new items, view all items, and search the list by item number. The application should accept the necessary details from the user for their chosen items,
adding them to either an Array of Objects or ArrayList (you may choose your own data structure).

  1. For your given category and functionality, outline the class diagram. Be careful to adhere to
    appropriate syntax and structure and identify suitable data members and methods for each class.
    You may do this either by hand and take a photo, or by using draw.io or a similar application.
    (15 Marks)
  2. Using the Java programming language and the Netbeans IDE, develop the application outlined in your
    using your prescribed categories.
    Your solution must include:
    • a suitable App class (5 marks)
    • a full swing user interface (10 marks)
    • instantiable classes with suitable data members and methods (10 marks)
    • functionality to add a record to the data structure (10 marks)
    • functionality to display all of the contents of your data structure (10 marks)
    • functionality to search the data structure for an item by number (10 marks)
    • functionality to save all records in the data structure to a file (10 marks)
  3. Add the necessary functionality to your application as per your student number
    (10 marks)
  4. Document and run 5 Test Cases for your application
    (10 Marks)
    Submission Instructions:
    • All work must be submitted via Moodle.
    • All work must be submitted using a zipped folder named using your Student ID.
    • The zipped folder should include:
  5. A word document containing the completed Class Diagram and Test Cases
  6. The complete Netbeans project folder
    Page 3 of 3
    Instructions for selecting the correct Categories and Functionality:
    Your category will correspond to the last digit of your Student ID as follows:
    Digit Category
    1,2,3 Book Catalogue
    4,5,6 Car Catalogue
    0,7,8,9 Academic Reference Catalogue
    Descriptions for each category and its attributes are outlined in Appendix A.
    Your additional functionality will correspond to the second last digit of your Student ID as follows:
    Digit Functionality 1,3,5,7,9 Choose an item at random from the list and print the details
    0,2,4,6,8 Find and print the details of the last item on the list
    For example, If your student number is x1912874, then the last digit of your ID 4, so your category would be “4: Car Catalogue”. As the second last digit of your ID is7, you should add the functionality to “Choose an item at
    random from the list and print the details”.
    Appendix A: Category Descriptions
    Book Catalogue
    All books have an id number (i.e. 1), author (i.e. J.K.Rowling), title (i.e. Harry Potter) and cost (i.e.€9.50) but ebooks have a file format (i.e. ePub) and audio books have a narrator (i.e. Stephen Fry).
    Car Catalogue:
    All cars have an id number (i.e. 1), make (i.e. Toyota), registration (i.e. 07D54321) and price (i.e.€10,000) new cars also have a Vehicle Registration Tax (VRT) amount (i.e. €500) and second hand cars have current mileage
    (i.e. 24,000km)
    Academic References Catalogue:
    All references have an id number (i.e. 1), author (i.e. Mr. Writer), year (i.e. 2020) and title (i.e. Java for
    Dummies) but book references also have an edition (i.e. 2nd Edition) and place (i.e. Ireland) while Journal
    Article references have a journal title (i.e. Journal of Java Stuff), volume (i.e. Vol 2) and pages (i.e. 29 – 33).

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}