diff --git a/Hotel-Management-Project-Java-master.iml b/Hotel-Management-Project-Java-master.iml new file mode 100644 index 0000000..1de981c --- /dev/null +++ b/Hotel-Management-Project-Java-master.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/backup b/backup new file mode 100644 index 0000000..de35458 Binary files /dev/null and b/backup differ diff --git a/out/production/Hotel-Management-Project-Java-master/Hotel-Management-Project-Java-master.iml b/out/production/Hotel-Management-Project-Java-master/Hotel-Management-Project-Java-master.iml new file mode 100644 index 0000000..1de981c --- /dev/null +++ b/out/production/Hotel-Management-Project-Java-master/Hotel-Management-Project-Java-master.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/out/production/Hotel-Management-Project-Java-master/LICENSE b/out/production/Hotel-Management-Project-Java-master/LICENSE new file mode 100644 index 0000000..2d83057 --- /dev/null +++ b/out/production/Hotel-Management-Project-Java-master/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Shourya Jaiswal + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/out/production/Hotel-Management-Project-Java-master/META-INF/Hotel-Management-Project-Java-master.kotlin_module b/out/production/Hotel-Management-Project-Java-master/META-INF/Hotel-Management-Project-Java-master.kotlin_module new file mode 100644 index 0000000..a49347a Binary files /dev/null and b/out/production/Hotel-Management-Project-Java-master/META-INF/Hotel-Management-Project-Java-master.kotlin_module differ diff --git a/out/production/Hotel-Management-Project-Java-master/README.md b/out/production/Hotel-Management-Project-Java-master/README.md new file mode 100644 index 0000000..6c12394 --- /dev/null +++ b/out/production/Hotel-Management-Project-Java-master/README.md @@ -0,0 +1,16 @@ +# Hotel-Management-OOP-Project + +This is a Hotel Management tool which can be used to manage +activites like storing customer details, booking rooms of four different types, ordering food +for particular rooms, unbooking rooms and showing the bill. It can also be used to see +different room features and room availibility. It is a menu driven program and it runs until +the user exits. File handling has been used to store the current status of the +hotel(customer details, booked rooms, food ordered) in a file once the program exits so +that when we restart the program, the old details are not lost. The program reads the file +when it restarts to know the previous status of the hotel. Writing of file has been done in a +separate thread as it can be done parallely. User defined exception is thrown if the user +tries to book an already allotted room. Exception handling is properly done to deal with any +kind of unexpected exception. +##### Topics Covered- +Classes and Objects, Inheritance, File Handling with Objects, ArrayList, implementing +Interface, User defined exception and Exception handling. diff --git a/out/production/Hotel-Management-Project-Java-master/_config.yml b/out/production/Hotel-Management-Project-Java-master/_config.yml new file mode 100644 index 0000000..c741881 --- /dev/null +++ b/out/production/Hotel-Management-Project-Java-master/_config.yml @@ -0,0 +1 @@ +theme: jekyll-theme-slate \ No newline at end of file diff --git a/out/production/Hotel-Management-Project-Java-master/project/Doubleroom.class b/out/production/Hotel-Management-Project-Java-master/project/Doubleroom.class new file mode 100644 index 0000000..abe4db5 Binary files /dev/null and b/out/production/Hotel-Management-Project-Java-master/project/Doubleroom.class differ diff --git a/out/production/Hotel-Management-Project-Java-master/project/Food.class b/out/production/Hotel-Management-Project-Java-master/project/Food.class new file mode 100644 index 0000000..750ec65 Binary files /dev/null and b/out/production/Hotel-Management-Project-Java-master/project/Food.class differ diff --git a/out/production/Hotel-Management-Project-Java-master/project/Hotel.class b/out/production/Hotel-Management-Project-Java-master/project/Hotel.class new file mode 100644 index 0000000..aa413de Binary files /dev/null and b/out/production/Hotel-Management-Project-Java-master/project/Hotel.class differ diff --git a/out/production/Hotel-Management-Project-Java-master/project/NotAvailable.class b/out/production/Hotel-Management-Project-Java-master/project/NotAvailable.class new file mode 100644 index 0000000..2620f03 Binary files /dev/null and b/out/production/Hotel-Management-Project-Java-master/project/NotAvailable.class differ diff --git a/out/production/Hotel-Management-Project-Java-master/project/Project.class b/out/production/Hotel-Management-Project-Java-master/project/Project.class new file mode 100644 index 0000000..3dc662a Binary files /dev/null and b/out/production/Hotel-Management-Project-Java-master/project/Project.class differ diff --git a/out/production/Hotel-Management-Project-Java-master/project/Singleroom.class b/out/production/Hotel-Management-Project-Java-master/project/Singleroom.class new file mode 100644 index 0000000..4482774 Binary files /dev/null and b/out/production/Hotel-Management-Project-Java-master/project/Singleroom.class differ diff --git a/out/production/Hotel-Management-Project-Java-master/project/holder.class b/out/production/Hotel-Management-Project-Java-master/project/holder.class new file mode 100644 index 0000000..8eb87dd Binary files /dev/null and b/out/production/Hotel-Management-Project-Java-master/project/holder.class differ diff --git a/out/production/Hotel-Management-Project-Java-master/project/write.class b/out/production/Hotel-Management-Project-Java-master/project/write.class new file mode 100644 index 0000000..6df4e0f Binary files /dev/null and b/out/production/Hotel-Management-Project-Java-master/project/write.class differ diff --git a/Project.java b/project/Project.java old mode 100755 new mode 100644 similarity index 98% rename from Project.java rename to project/Project.java index 9a2bc7d..208848c --- a/Project.java +++ b/project/Project.java @@ -342,7 +342,7 @@ static void bill(int rn,int rtype) System.out.println("==============="); System.out.println("Item Quantity Price"); System.out.println("-------------------------"); - for(Food obb:hotel_hotel_ob.deluxe_singleerrom[rn].food) + for(Food obb:hotel_ob.deluxe_singleerrom[rn].food) { amount+=obb.price; String format = "%-10s%-10s%-10s%n"; @@ -486,8 +486,8 @@ class write implements Runnable public void run() { try{ FileOutputStream fout=new FileOutputStream("backup"); - objectOutputStream oos=new ObjectOutputStream(fout); - oos.writeObject(ob); + ObjectOutputStream oos=new ObjectOutputStream(fout); + oos.writeObject(hotel_ob); } catch(Exception e) { @@ -498,7 +498,7 @@ public void run() { } -public class Project3 { +public class Project { public static void main(String[] args){ try @@ -508,7 +508,7 @@ public static void main(String[] args){ { FileInputStream fin=new FileInputStream(f); ObjectInputStream ois=new ObjectInputStream(fin); - Hotel.ob=(holder)ois.readObject(); + Hotel.hotel_ob=(holder)ois.readObject(); } Scanner sc = new Scanner(System.in); int ch,ch2;