Guest User

Untitled

a guest
Nov 14th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. # All Day Lab - CodeClan Towers
  2.  
  3.  
  4. You are being asked to model a hotel. This hotel will contain collections of different rooms (bedrooms, conference rooms, dining rooms, etc).
  5.  
  6.  
  7. ## MVP
  8.  
  9. * Create 3 different types of rooms which and have properties/methods of their own:
  10.  
  11. - Bedroom which have a room number, capacity, collection of guests and a type (e.g. Single/Double.)
  12.  
  13. - Other rooms will have a capacity, collection of guests, name and any other properties you wish.
  14.  
  15. * Create a Guest class so that guests can be checked in/out of rooms.
  16.  
  17. * Create a Hotel class, which has collections of rooms of different types.
  18.  
  19. * The hotel will be able check guests in/out of rooms.
  20.  
  21.  
  22. ### Extensions
  23.  
  24. * Create a Booking class which has a bedroom and a number of nights.
  25. * Create a bookRoom method in hotel. This should book a specific bedroom for a number of nights. This should return a new booking object.
  26. * Add a nightly rate to the bedrooms and write a method to return the total bill for the booking. (nightly rate * number of nights)
  27.  
  28. ### Advanced Extensions
  29.  
  30. * Add functionality to the hotel so it can see a list of vacant bedrooms.
  31. * Amend bedroom check in so that hotel will only be able to check guests into empty bedrooms.
  32. * Any other extensions you can think of!
  33.  
  34. #### Remember
  35. Use TDD, with separate test files for each class.
Add Comment
Please, Sign In to add comment