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 ...




student submitted image, transcription available below
student submitted image, transcription available below
student submitted image, transcription available below
student submitted image, transcription available below
1. write a program to manage 10 hotel rooms using 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 \#include // 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 ( 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 - Exit program Enter transaction type: 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


We have an Answer from Expert

View Expert Answer

Expert Answer



We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe