Reference no: EM131042430
Assignment:
Overview- You are required to document, test and refactor an existing application. You will be given a copy of an existing C# application which is responsible for taking bookings for a cruise ship, this application is badly in need of refactoring and even a casual viewing of the source code reveals many examples of the "code smells" discussed by Fowler.
Learning Outcomes-
Knowledge:
Explain the significance of detailed project planning and control, good communication and documentation and the use of appropriate tools in order to provide a quality product;
Discriminate between software engineering and programming, and thus the distinction between a software configuration and a program;
Skills:
Analyse source code and develop comprehensive unit test suites
Operate CASE software to document the design of a piece of software
Apply refactoring to identify poor programming practice in existing source code and improve its structure and readability
Assessment Details-
You are required to document, test and refactor an existing application. You will be given a copy of an existing C# application which is responsible for taking bookings for a cruise ship, this application is badly in need of refactoring and even a casual viewing of the source code reveals many examples of the "code smells" discussed by Fowler.
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
• Report detailing any "code smells" present in the code and how you intend to refactor them out of the code
• A refactored version of the system eliminating all identified code smells
• A class diagram illustrating the initial code and another class diagram illustrating the final refactored code (including all relevant dependencies)
• A sequence diagram illustrating how the final refactored system processes a new booking
• Extensive NUnit tests for methods SetupShip and BookPassage in the FedUniCruises class
• Add a loyalty rewards system. People who are bronze members of the loyalty rewards program receive a 5% discount on all bookings, people who are silver members receive 7.5% discount, while gold members receive 10% off the cost of their bookings.
• Add a platinum membership to the loyalty rewards program which entitles the holder to 50% off the cost of booking on decks 1, 2 and 3 and 25% off the cost of bookings for all suites.
Attachment:- Assignment.zip
Who does protectionism protect
: Who does protectionism protect? What does it protect them from?
|
Calculate benchmarks return on equity for 2007
: Calculate Benchmarks return on equity for 2007 as reported and calculate the breakeven points using both machines and Which alternative is superior on financial grounds?
|
Which internal -external environments influence hrm practice
: Across Australia and globally, the nature and practice of Human Resource Management (HRM) is in a constant state of evolution as organisational forms, management standards, labour markets and whole economies shift, adapt and change. These changes ..
|
Mean difference in weights of the melons
: a) What's the mean difference in weights of the melons? b) What's the standard deviation of the difference in weights?
|
Report detailing any code smells present in the code
: Report detailing any "code smells" present in the code and how you intend to refactor them out of the code and A refactored version of the system eliminating all identified code smells
|
How have leaders of nation or region responded to the issue
: How have leaders of the nation or region responded to the issue? What are the potential advantages and disadvantages of the actions or proposed solutions?
|
Discuss ethical dilemmas and business dilemmas
: Discuss the ethical dilemmas, business dilemmas and potential solutions when the homeless people use the public library for their sleeping, shower or staying.
|
Why do nations not just eliminate their trade barriers
: why do nations not just eliminate their trade barriers, and not bother with international trade negotiations?
|
Machine emergency shutoff device
: Problem: Safety engineers must determine whether industrial workers can operate a machine's emergency shutoff device. Among a group of test subjects, 66% were successful with their left hands, 85% with their right hands, and 51% with both hands.
|