Solution: 2-D Arrays
Let's discuss the solution TO the exercise.
We'll cover the following
Problem
This exercise USES a 2-D array for checking the occupancy of hotel rooms.
Write a Console-based app called Hotel that meets the requirements listed below.
- Create a 2-D array for two floors and three rooms.
- Add the following data in the created 2-D array.
- Floor 1:
Andrew M.
,Zach T.
,Devin D.
- Floor 2:
Ramona P.
,Robert C
,Empty
- Display the queried floor, the room checked, and the occupant of the room.
Get hands-on with 1400+ tech skills courses.