top of page

PROGRAMMING CHALLENGES

Hotel Room Availability Checker

Difficulty:

2 Medium

2.2 Practice Exam Questions

Topic:

Write a program that allows a hotel manager to enter the availability of 10 rooms in an array (available or booked). The program should then allow a guest to check if a room is available by entering the room number, and it should display the availability status.

Use an array to store room availability and a for loop with an if statement to check room status.

Need help with your programming skills?

If you need more help than just independent practise, then we're here for you. Book a 1:1 with us and we will be able to guide you to becoming a proficient programmer who can tackle any of the challenges an exam board can throw at you.

bottom of page