Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Assignment:

You are required to document, test and refactor an existing C# application, which is responsible for taking bookings for a theatre booking system. The current application 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 Outcome Assessed

The following course learning outcomes are assessed by completing this assessment:

i) 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

ii) Discriminate between software engineering and programming, and thus the distinction between a software configuration and a program.

iii) Analyze source code and develop comprehensive unit test suites.

iv) Operate CASE software to document the design of a piece of software.

iv) Apply refactoring to identify poor programming practice in existing source code and improve its structure and readability

Introduction:

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 theater, 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.

Your report should be written in the same manner as Fowler has done in the prescribed text - small refactorings with code comparisons and UML diagrams (refer Fowler, M., & Beck, K. (2000).

Refactoring : improving the design of existing code. Reading, MA: Addison-Wesley. pp. 1-65). Ask your tutor if you have any doubts.

Notes about the assignment

• Theatres have three sections: stalls, dress circle and balcony

• Each theatre section has a number of rows and each section row has the same number of seats.

• Each section has a different price per seat, Stalls $30.00, Dress circle $50.00, Balcony $90.00

• Customers must register with the system prior to placing a booking (Customers must present credit card information when registering)

• Customers may be members or nonmembers of the "Theatre Club"

o Non-members pay full price per seat

o Members fall into three categories: bronze, silver and gold. Bronze, Silver and Gold members are entitled to a discount of 10%, 20% and 30%, respectively off their booking.

• The system will automatically reserve a given number of seats in a requested section

o The seats are booked in the first row of a section which is found to have the number of requested seats free adjacent to each other.

o The application searches a section from the first row working backwards towards the last row until it finds the requested number of seats.

o There is no facility to book a particular seat.

• The system can potentially manage many theatres, each theatre has a number of theatre bookings (events) and each theatre booking has a number of customer bookings.

• Customers can currently only make a single booking for each event.

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)

• Sequence Diagram: Calculation of Charges (represent the calls made by the refactored system when calculating the charges for a booking)

• Sequence Diagram: Booking Seats (represent the calls made by the refactored system when booking seats in response to a reservation)

• A sequence diagram illustrating how the final refactored system processes a new booking

• Extensive NUnit tests for the methods Calculation of Charges and Booking of Seats

• Add a loyalty rewards system. That theater is running a new promotion to include more members. If a Gold member includes his/her friend as the new member of the Theater, s/he (Gold member) will receive a further 15% in next booking. This numbers are 10% and 5% for silver and bronze members, respectively.

• The existing application doesn't allow to book any particular seat. Include an appropriate method in your code base so that only the Gold members can book a particular seat. If that particular seats is not available, the user may try for more 2 time to select another seat. However, when all the chances are gone, that booking will be performed in usual system.

• Your report should identify any of Fowler's "Bad Smells" in the code, and which refactorings you performed to improve the application's design. Refactor the code using the textbook and the refactoring example from the lectures as a guide. The resultant code should be generally free from Fowler's "code smells", this will become obvious when you start writing your NUnit tests and documenting the refactored system in UML.

Attachment:- Assignment-Code-Base.zip

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92819125
  • Price:- $75

Priced at Now at $75, Verified Solution

Have any Question?


Related Questions in Computer Engineering

Question draw a map labeling every aspect which represents

Question: Draw a map, labeling every aspect, which represents how IP addressing works with DNS servers to process a request for a web page from your computer that returns the web page.Using tracert from your terminal ent ...

What is the solution for chapter 15 3e for java programming

What is the solution for chapter 15 3e for java programming 8th edition Create a JFrame that holds fjive buttons with the names of five different fonts. Include a sexth button that the user can click to make a font large ...

Recently a government department is involved in the

Recently, a government department is involved in the development of an Online Passport Application Platform. The officers in the department are clear about the requirements of this platform. Besides, the functions of thi ...

Systems and networksconsider communication between a sender

(Systems and Networks) Consider communication between a sender and receiver. Using a time-space diagram, illustrate reliable transmission of a message consisting of 5 segments using the selective-repeat protocol with N=3 ...

Sectools - top 125 network security toolssnort websitenmap

SecTools - Top 125 Network Security Tools SNORT website Nmap website Lynx website (for a text browser) Wget website Teleport Pro website Research one of the tools listed in the chapter or linked above. Discuss its releva ...

Rocket motors are tested by restraining them on the ground

Rocket motors are tested by restraining them on the ground, firing them with a known amount of propellant, and measuring the thrust over time. A typical curve is shown below. The total impulse is the integral of the thru ...

What is the net present value of a project with a discount

What is the Net Present Value of a project with a discount rate of 12%p.a. whose Net Cash Flows are forecast to be: Year 0: $15,000 outflow Year 1: $2,000 inflow Year 2: $3,000 inflow Year 3: $5000 inflow Year 4 $10,000 ...

A mixture of 499 mol of n2 and 3090 g of no is heated in a

A mixture of 4.99 mol of N2 and 30.90 g of NO is heated in a closed vessel to 2000 °C. After heating, the total pressure of the mixture at equilibrium is 3.14 atm. N2(g) + O2(g) 2NO(g) Kp= .101 at 2000 C In which directi ...

Jamie dimon changed the business model for jpmorgan chase

Jamie Dimon changed the business model for JPMorgan Chase in 2008. In the process, the bank gave enormous trading authority to one individual. What are the ERM strengths and weaknesses of this strategy?

This is a software testing techniques class so i want to

This is a software testing techniques class so I want to write about test paths using node/edge or edge-pair coverage using a real or fictitous software project. Compose a short email to the decision-maker in your organi ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As