The Palace Place hotel rooms are identified by a four digit numberwxyz. The first two digitswxrepresent the
Fantastic news! We've Found the answer you've been seeking!
Question:
The Palace Place hotel rooms are identified by a four digit numberwxyz. The first two digitswxrepresent the floor. For example, room 2134 is on the 21stfloor. Room 0781 is on the 7thfloor. The last two digitsyzrepresent the type of room:
- 00-19 Economy
- 20-39 Economy with Drawing Room
- 40-59 Two Bedroom Suite
- 60-79 Two Bedroom Suite with Balcony
- 80-99 Luxury Suite
You are to write a function method roomDetails(int roomNum) that takes a room number as an argument and returns a String of the floor and room type. For example, roomDetails(1877) will yield: "Floor 18 Two Bedroom Suite with Balcony"
Posted Date: