Jump to content

Need Help!

PugoOfficial

Hi Guys!

 

- Does anybody know how the process and flow of hotel and reservation system works and how the manual process works in hotel and reservation systems I don't know where to put this Id just guessed because this is for our programming

PS: I'm Using Java(JCreator LE)

CPU: Intel Core i7-4790K @ 4.0GHz | COOLING: Corsair H100i Liquid Cooler | MOTHERBOARD: ASUS Maximus VII Formula ATX | MEMORY: Corsair Vengeance Pro Series 16GB (2 x 8) DDR3-1866 | STORAGE: Intel 730 Series 480GB SSD + Seagate Barracuda 3TB HDD | PSU: Corsair AX860i 80+ Platinum | GPU: ASUS GeForce GTX 780Ti DirectCU II (2-Way SLI) | CASE: Phanteks Enthoo Luxe (Black) | DISPLAY: ASUS PB278Q 27.0" (2560 x 1440) | KEYBOARD: Razer BlackWidow Chroma | MOUSE: Razer Deathadder Chroma | SOUND: Logitech Z906 5.1 Speakers / Razer Kraken Chroma | OS: Microsoft Windows 8.1 (64-bit)

Link to comment
Share on other sites

Link to post
Share on other sites

Sounds like business requirements so you would probably find a good answer from people who have worked at hotels

Link to comment
Share on other sites

Link to post
Share on other sites

Sounds like business requirements so you would probably find a good answer from people who have worked at hotels

No I meant in a program how do you make a program in Java that will make them check in then check out

 

Edit: Or atleast a flowchart of the process of flow of the program

CPU: Intel Core i7-4790K @ 4.0GHz | COOLING: Corsair H100i Liquid Cooler | MOTHERBOARD: ASUS Maximus VII Formula ATX | MEMORY: Corsair Vengeance Pro Series 16GB (2 x 8) DDR3-1866 | STORAGE: Intel 730 Series 480GB SSD + Seagate Barracuda 3TB HDD | PSU: Corsair AX860i 80+ Platinum | GPU: ASUS GeForce GTX 780Ti DirectCU II (2-Way SLI) | CASE: Phanteks Enthoo Luxe (Black) | DISPLAY: ASUS PB278Q 27.0" (2560 x 1440) | KEYBOARD: Razer BlackWidow Chroma | MOUSE: Razer Deathadder Chroma | SOUND: Logitech Z906 5.1 Speakers / Razer Kraken Chroma | OS: Microsoft Windows 8.1 (64-bit)

Link to comment
Share on other sites

Link to post
Share on other sites

If you're asking how the software that hotels use to check in and check out customers works then, on a basic level and without any amount of detail, I assume someone fills out a form (GUI interface) which updates a database upon finishing.

Link to comment
Share on other sites

Link to post
Share on other sites

/**

* Created by Tyler on 2014/10/08.

*/

public class Hotel {

private boolean[] rooms;

public Hotel(final int numRooms) {

rooms = new boolean[numRooms];

}

public void checkIn(int roomNum) {

if (rooms[roomNum]) {

System.err.println(String.format("Room #%d is already occupied!!", roomNum));

} else {

rooms[roomNum] = true;

System.out.println(String.format("Room #%d is now occupied", roomNum));

}

}

public void checkOut(int roomNum) {

if (rooms[roomNum]) {

rooms[roomNum] = true;

System.out.println(String.format("Room #%d is now empty", roomNum));

} else {

System.err.println(String.format("Room #%d is already empty!!", roomNum));

}

}

public boolean isOccupied(int roomNum) {

return rooms[roomNum];

}

}

As simple as i can make it to demonstrate the idea
Link to comment
Share on other sites

Link to post
Share on other sites

/** * Created by Tyler on 2014/10/08. */public class Hotel {    private boolean[] rooms;        public Hotel(final int numRooms) {        rooms = new boolean[numRooms];    }        public void checkIn(int roomNum) {        if (rooms[roomNum]) {            System.err.println(String.format("Room #%d is already occupied!!", roomNum));        } else {            rooms[roomNum] = true;            System.out.println(String.format("Room #%d is now occupied", roomNum));        }    }        public void checkOut(int roomNum) {        if (rooms[roomNum]) {            rooms[roomNum] = true;            System.out.println(String.format("Room #%d is now empty", roomNum));        } else {            System.err.println(String.format("Room #%d is already empty!!", roomNum));        }    }        public boolean isOccupied(int roomNum) {        return rooms[roomNum];    }}
As simple as i can make it to demonstrate the idea

 

import java.io.*;

public class Hotel {

    private boolean[] rooms;

    

        public static void main (String [] args) throws IOException {

    

    String Hotel(final int numRooms) {

        rooms = new boolean[numRooms];

    }

    

    public void checkIn(int roomNum) {

        if (rooms[roomNum]) {

            System.err.println(String.format("Room #%d is already occupied!!", roomNum));

        } else {

            rooms[roomNum] = true;

            System.out.println(String.format("Room #%d is now occupied", roomNum));

        }

    }

    

    public void checkOut(int roomNum) {

        if (rooms[roomNum]) {

            rooms[roomNum] = true;

            System.out.println(String.format("Room #%d is now empty", roomNum));

        } else {

            System.err.println(String.format("Room #%d is already empty!!", roomNum));

        }

    }

    

    public boolean isOccupied(int roomNum) {

        return rooms[roomNum];

    }

}

}

 

I Change a few parts of the program sorry if it didn't work buy there's only 1 error left:

See below

 

  String Hotel(final int numRooms) {

                ^

1 error

Process completed.

 

CPU: Intel Core i7-4790K @ 4.0GHz | COOLING: Corsair H100i Liquid Cooler | MOTHERBOARD: ASUS Maximus VII Formula ATX | MEMORY: Corsair Vengeance Pro Series 16GB (2 x 8) DDR3-1866 | STORAGE: Intel 730 Series 480GB SSD + Seagate Barracuda 3TB HDD | PSU: Corsair AX860i 80+ Platinum | GPU: ASUS GeForce GTX 780Ti DirectCU II (2-Way SLI) | CASE: Phanteks Enthoo Luxe (Black) | DISPLAY: ASUS PB278Q 27.0" (2560 x 1440) | KEYBOARD: Razer BlackWidow Chroma | MOUSE: Razer Deathadder Chroma | SOUND: Logitech Z906 5.1 Speakers / Razer Kraken Chroma | OS: Microsoft Windows 8.1 (64-bit)

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×