Report detailing any code smells present in the code

Assignment Help C/C++ Programming
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

Reference no: EM131042430

Questions Cloud

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.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program to calculate the trajectory flight path of

write a program to calculate the trajectory flight path of a soccer ball when it is kicked by a player inside the field

  Create a text file named grades.txt

Write a program to calculate students' average test scores and their grades. Creat a text file named  grades.txt

  Heights of the individual pupils

Make a C++ program that helps the health visitor making the statistics and heights of the individual pupils,

  Skills required by personnel working in information security

What skills are required by personnel working in information security? Write down some job titles in the field and come up with some required qualifications and some desirable qualifications.

  Insert the missing code in the c program

You are to insert the missing code in the C program given for combinational equivalence checking. This program will interface with the CUDD package and will parse netlist files in ISCAS85 circuit format. Next, BDDs will be created for each circuit an..

  Calculates the position of a cannonball

Write a c++ program that calculates the position of a cannonball that is fired straight up in the air. Use short time intervals (.01 seconds) and display the position and velocity every second.

  Write a program to implement a simple batch operating system

Write a program C/C++ to implement a simple batch operating system. Develop a simple loader, scheduler, memory manager, and shell.

  Generates a random number and asks the user

Write a program in c++ that generates a random number and asks the user to guess what the number is. If the user's guess is higher than the random number

  Write a function to convert the two dimensional coordinates

Write a function to convert the two dimensional coordinates of a point from Cartesian system to polar system by using x and y as its parameters, returning r and using references to pass theta value.

  Write program that stores the numbers in array

Write a c++ program that stores the following numbers in the array named miles: 15,22,16,18,27,23, and 20. have your program copy the data stored in miles to another array.

  Partial implementation of the overloaded assignment

You have a class called MyBag that contains this partial implementation of the overloaded assignment operator.  The first line is missing.

  Determining the integer reference parameters

Write a function named time() that has an integer parameter named seconds and three integer reference parameters named hours, mins, and secs. The function is to convert the passed number of seconds into an equivalent number of hours, minutes, and ..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd