Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You will need to fill in blog.md for this activity. Put your answers to the question inside of it . Copy this template into your

You will need to fill in blog.md for this activity. Put your answers to the question inside of it. Copy this template into your blog Task 1 Q1: Why is this approach considered good design? What principles does it makes use of?[your answer here] Q2: What is meant by the term "black-box"? How are the tests inside BookingSystemTest black-box? [your answer here] Task 2 Q3: What does this method do? What does it return, and what side effects does it have? [your answer here] Q4: In your opinion, which is better quality code, Code A or B? Justify your answer. [your answer here] Task 3 Q5: What are some code smells (features of the code that make it poor quality) present in this method? [your answer here] Task 4 Q6: Note down all of the code smells you can see. [your answer here] Q7: Reflect on your thought process, the steps you took to refactor and how you have improved the design of the system. [your answer here] Reflections [your reflections here] Overview & Product Specification Inside src/main/java/hotel there is some starter code for the backend of a hotel booking system. The system is designed to address the following requirements: There are three types of Room: Standard rooms; Ensuite rooms; Penthouse rooms A Hotel has a series of rooms and a name. Rooms can be booked from a start date to an end date, and the client can specify which of the types of rooms they wish to book Each type of room has its own custom welcome message.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+ Is the needed level available from outside sources?

Answered: 1 week ago

Question

Define organisation chart

Answered: 1 week ago

Question

What are the advantages of planning ?

Answered: 1 week ago

Question

Explain the factors that determine the degree of decentralisation

Answered: 1 week ago

Question

What Is acidity?

Answered: 1 week ago

Question

Explain the principles of delegation

Answered: 1 week ago