Java
Java
ArrayList;
import java.util.Scanner;
class Staycation {
String name;
double price;
int capacity;
boolean isBooked;
while (true) {
System.out.println("\n--- 🏡KrizAce Gateways – Booking System ---");
System.out.println("1. View Staycations");
System.out.println("2. Book a Staycation");
System.out.println("3. Cancel Booking");
System.out.println("4. Finish");
System.out.print("Enter your choice: ");
switch (choice) {
case 1:
displayStaycations();
break;
case 2:
bookStaycation();
break;
case 3:
if (confirmCancellation()) {
return;
} else {
System.out.println("\n🚫 Cancellation aborted.");
}
break;
case 4:
printBookingSummary();
return;
default:
System.out.println("\n⚠ Invalid choice. Please try again.");
}
}
}
if (selectedStay.isBooked) {
System.out.println("\n❌ This staycation is already booked.");
return;
}
System.out.print("\n📅 Enter Check-in Date (YYYY-MM-DD): ");
String checkIn = scanner.nextLine();
System.out.println(lastBookingSummary);
} else {
System.out.println("\n⚠ Invalid selection.");
}
}
System.out.println("---------------------------------------------------");
System.out.println(lastBookingSummary);
}
System.out.println("\n🏡 House Rules & Reminders:");
System.out.println("✔ No smoking inside the unit 🚭");
System.out.println("✔ No loud noise or parties after 10 PM 🔇");
System.out.println("✔ Pets are allowed with an additional ₱500 cleaning fee
🐶");
System.out.println("✔ Maximum number of guests must be followed 👥");
System.out.println("✔ Early check-in and late check-out are subject to
availability ⏳");
System.out.println("✔ Any damages to the unit will be charged accordingly
💳");
System.out.println("✔ Please dispose of trash properly and maintain
cleanliness ");
System.out.println("\n📞 For any concerns or changes to your booking,
contact us at 0999-999-9999.");
System.out.println("We look forward to hosting you! ✨");
System.out.println("---------------------------------------------------");
System.out.println("\nThank you for using KrizAce Gateways Booking
System! 🌞");
}
}