Answer to Question #286256 in Java | JSP | JSF for mengal

Question #286256

Hotel Management System in Java




The main task for Hotel Management Project in java is ahead to see all the things whether they are running smoothly or not, this software will be capable of doing or performing following tasks:




Reservation.



Registration.



Billing/Clearance of Guest Folio.



Checkout.



This Hotel Management Project in java is developed keeping in mind the various aspects of hotels in public sector as well as in private sector. This software is intended to be developed for Deluxe Class / Super-Deluxe Class Hotels. A Comparison will be done of Deluxe Class Hotels in public sector and in private sector and then the resultant / desired software will be developed.



Keeping records of various customers that visit in the hotel.


Keeping records of various items that are served to the customers.


Keeping records of customer’s Check-in/Check-out timings.

1
Expert's answer
2022-01-10T14:55:04-0500
import java.util.ArrayList;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        ArrayList<String> customer = new ArrayList<>();
        int[] rooms = new int[10];
        System.out.println("Enter you name:");
        customer.add(in.nextLine());
        System.out.println("Select a room(0-6 regular, 7-9 deluxe):");
        int room = in.nextInt();
        rooms[room] = 1;
        System.out.println("To pay: " + (room < 7 ? "100$" : "200$"));

    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog