CSCI 5308 Assignment 2  Solved

35.00 $

Category:

Description

5/5 - (1 vote)

 

Objectives

  • Practice procedural refactoring.
  • Practice implementing good/quality code.
  • Practice SOLID principles.

 

Problem Statement

You have three main tasks in this assignment:

  • Refactor the code using what you learnt from lectures 6 and 7.
  • Increase code quality using the Java guidelines provided.
  • Refactor the code by applying SOLID principles.
  • Use exceptions wherever is necessary.

Task

  1. Identify three (3) procedural refactoring opportunities that can be done in the code using the guidelines. Provide:
    1. A brief description of each issue that require refactoring
    2. Fix the issue.
    3. Test your fix (when applied).

 

  1. [ Identify three (3) refactoring that can be done in the code by applying SOLID Principles. Give:
    1. a brief description of each issue.
    2. where the issue is.
    3. what SOLID principle is violated.
    4. how to fix the issue.
    5. Apply your fix.
    6. Test your fix.

 

  1.  Identify three (3) methods requiring exceptions. Give:
    1. method where exception should be used.
    2. what the exception should be used.
    3. Add the exception to the code.

 

 

  • Assignment2-0omioy.zip