Page 305 - CA_Blue( J )_Class9
P. 305

Write a project to simulate a hotel booking scenario.
                  Project   2







































                   1  public class Hotel
                   2  {

                   3       public static  void  main(String C_Name,  int  M_code, String Room_type,  int
                          Rooms, int Days)
                   4      {

                   5              int Per_Day_Charge = 0;
                   6              int Deluxe_Discount = 0;
                   7              int Super_Deluxe_Discount = 0;

                   8              int Bill = 0;
                   9              int Discount = 0;

                  10              int Amount_Payable = 0;
                  11            System.out.println("                                                             ");

                  12              System.out.println("\t\tWelcome to Hotel Dream Land");
                  13              System.out.println("                                                             ");

                  14              System.out.println();
                  15              System.out.println("Customer Name:" + C_Name);

                  16              System.out.println("Membership Code: " + M_code);
                  17              switch (M_code)




                                                                                                Sample Projects  303
   300   301   302   303   304   305   306   307   308   309   310