Home /
Expert Answers /
Computer Science /
1-write-a-c-program-to-manage-10-hotel-rooms-using-c-structures-to-develop-a-hotel-management-syst-pa986
(Solved): 1. write a C program to manage 10 hotel rooms using C structures to develop a hotel management syst ...
1. write a C program to manage 10 hotel rooms using C structures to develop a hotel management system. Every room should have the following details: room number, status ( 1 for reserved and 0 for vacant), customer details (username, last name, email address, address, and telephone number), check-in date, and check-out date. Your code should have a menu for these services:
- You should use c structure to implement your hotel management system. - All the services mentioned above should be implemented as C functions. - Use the following template to write your code. I \#include h? \#include h? // Structure to store customer details 1) Structure to represent a hotel room // Function to book a room void bookRoom (struct Room hotel[], int roomNumber) ( ) // Function to view customer details void viewCustomerDetails (struct Room hotel[], int roomNumber I
// Function to edit customer details void editcustomerDetails (struct Room hotel[], int roomNumber) I 1 // Function to check out void checkout (struct Room hotel[], int roomNumber) i I 1 // Function to print a report void printReport (struct Room hotel[1) ( 1 int main() ( return 0 ;
Example: Hotel Management System Menu: B - Book a room V - View customer details E - Edit customer details C - Check-out R - Print report X - Exit program Enter transaction type: r Hotel Room Report: Room 1: Vacant Room 2: Booked Room 3: Vacant Room 4: Vacant Room 5: Vacant Room 6: Vacant Room 7: Vacant Room 8: Vacant Room 9: Vacant Room 10: Vacant