Recent Question/Assignment
Notes about the assignment
There are eight types of cabin which may be booked. Standard costs are as follows:
• Balcony Suite ($5000 per cabin)
• Suite ($4000 per cabin)
• Deck 3 – Outside Twin ($3500 per cabin)
• Deck 2 – Outside Twin ($3400 per cabin)
• Deck 1 – Outside Twin ($3300 per cabin)
• Deck 3 – Inside Twin ($3400 per cabin)
• Deck 2 – Inside Twin ($3300 per cabin)
• Deck 1 – Inside Twin ($3200 per cabin)
Requirements
1. Find the code smells from the given code (FeduniCrusis) and refactor the code as well.
2. A refactored version of the system eliminating all identified code smells
3. A class diagram illustrating the initial code and another class diagram illustrating the final refactored code (including all relevant dependencies)
4. A sequence diagram illustrating how the final refactored system processes a new booking
5. Extensive NUnit tests for methods SetupShip and BookPassage in the FedUniCruises class
Submission
You are required to submit to on Moodle before the due date a zip file containing:
• A solution called final which has all of the final refactored code and the project for the unit tests
• A word document containing your UML models and a justification of your refactorings.