The expected output used to test your code are as follows:
Data List: (001,0,10,200) (003,0,3,70) (004,0,4,100) (005,0,3,70)
Request: (1,100) (12,500) (4,50) (4,400)
Data List: (001,0,10,200) (003,1,3,70) (004,1,4,100) (005,0,3,70)
Request: Empty
Available Room(s): 2
Explaination:
Similar to the function f3(), rooms 003 and 004 are rented. At that point, the Hotel has two available rooms: 001 and 005.
End ---
Zoom
+ 100%
Close