Untitled
unknown
plain_text
2 years ago
3.8 kB
7
Indexable
print("Welcome to the GEM PARK Management System") # Room information rooms = {101: {"status": "Vacant", "price": 1000}, 102: {"status": "Vacant", "price": 2000}, 103: {"status": "Vacant", "price": 1500}, 104: {"status": "Vacant", "price": 800}} # Room booking def book_room(): name = input("Enter your name: ") phone_number = input("Enter your phone number: ") days = int(input("Enter number of days: ")) room_number = int(input("Enter room number: ")) if room_number in rooms: if rooms[room_number]["status"] == "Vacant": rooms[room_number]["status"] = "Occupied" total_amount = rooms[room_number]["price"] * days print("Booking Confirmed! \n") print("----------Receipt----------") print("Name: ", name) print("Phone Number: ", phone_number) print("Room Number: ", room_number) print("Number of days: ", days) print("Total Amount: ₹", total_amount) return paymentMethod() print("Please Pay the Amount: ₹", total_amount, " at the front desk \n") else: print(f"Room {room_number} is not available. Please check the availability\n") else: print("Sorry, Room not Available, Please check the available rooms \n") def view_rooms(): print("Vacant Rooms:") for room_number, room_info in rooms.items(): if room_info["status"] == "Vacant": print(f"Room Number: {room_number} Price: ₹{room_info['price']}") print("Occupied Rooms:") for room_number, room_info in rooms.items(): if room_info["status"] == "Occupied": print(f"Room Number: {room_number}, Price: ₹{room_info['price']} \n") def paymentMethod(): print("Choose your Payment Method: ") print("1. Card") print("2. Cash") print("3. NetBanking") print("4. UPI") paymentOption = int(input("Enter your Choice: ")) if paymentOption == 1: print("You have accepted to pay by Card") elif paymentOption == 2: print("You have accepted to pay by Cash") elif paymentOption == 3: print("You have accepted to pay by NetBanking") elif paymentOption == 4: print("You have accepted to pay by UPI") else: print("Invalid Option!") print("Thank you for using the GEM PARK Resort Management System. \n") def activities(): print("Choose your activity : ") print("1. Education (Museum tour, Aerospace activity, Robotics, Cultural Awareness): ₹2500") print("2. Adventurous (Nature Walk, Trekking, Zipline, Sports): ₹2500") print("3. Education + Adventurous (Both = ₹5000/-)") option = int(input("Enter Your Choice: ")) if option == 1: print("Educational activity chosen") print("Make Sure to Pay ₹2500 At the front desk \n") elif option == 2: print("Adventure activity chosen") print("Make Sure to Pay ₹2500 At the front desk \n") elif option == 3: print("Both activities have been chosen") print("Make Sure to Pay ₹5000 At the front desk \n") else: print("Invalid option") while True: print("1. View Rooms") print("2. Book Rooms") print("3. Activities (Optional)") print("4. Exit") choice = int(input("Enter your choice: ")) if choice == 1: view_rooms() elif choice == 2: book_room() elif choice == 3: activities() elif choice == 4: print("Thank you for using the GEM PARK Resort Management System.") break else: print("Invalid choice. Please try again.")
Editor is loading...