import java.io.*; public class tourism { public static void main(String args[])throws IOException { InputStreamReader reader =new InputStreamReader(System.in); BufferedReader input=new BufferedReader(reader); int l=0,n,c; String k; System.out.println("1.jaipur "); System.out.println("2.kashmir "); System.out.println ("3.kerela"); System.out.println("4.goa "); System.out.println("5.kolkata "); System.out.println("6.maharashtra"); System.out.println("7.delhi "); System.out.println("8.punjab "); System.out.println ("enter users choice"); c=Integer.parseInt(input.readLine ()); System.out.println ("enter 's'for single room and 'd'for more than one room"); k=input.readLine(); System.out.println ("enter cost of selected room"); System.out.println (); n=Integer.parseInt(input.readLine ()); if(k.equalsIgnoreCase("s")) { if(n>=1000 && n<=1500 ) l=1; if(n>=1501 && n<=2000 ) l=2; if(n>=2001 && n<=2500 ) l=3; if(n>= 2501 && n<=3000 ) l=4; if(n>=3001 && n<=3500) l=5; if(n>= 3501 && n<=4000 ) l=6; if(n>= 4001 && n<=4500 ) l=7; if(n>= 4501 && n<=5000 ) l=8; } else if(k.equalsIgnoreCase("d")) { if(n>=5000 && n<=5500 ) l=1; if(n>= 5501 && n<=6000 ) l=2; if(n>= 6001 && n<=6500 ) l=3; if(n>= 6501 && n<=7000 ) l=4; if(n>=7001 && n<=7500 ) l=5; if(n>= 7501 && n<=8000 ) l=6; if(n>= 8001 && n<=8500 ) l=7; if(n>= 8501 && n<=9000 ) l=8; } switch(c) { case 1: System.out.println("welcome to the paris o india"); System.out.println("******"); System.out.println("std code[jaipur]------0141"); System.out.println("######"); if(l==1) { System.out.println("contact hotel-----maharaja"); System.out.println("telephone no"); System.out.println("0141-2304371"); System.out.println("~~~~~"); } else if(l==2) { System.out.println("contact hotel-----samode palace"); System.out.println("telephone no"); System.out.println("0141-2460141"); System.out.println("~~~~~"); } else if(l==3) { System.out.println("contact hotel----------the jaipur emerald"); System.out.println("telephone no"); System.out.println("0141-237868"); System.out.println("~~~~~~"); } else if(l>=4&&l<=8) { System.out.println("sorry invalid choice"); } System.out.println("famous places"); System.out.println("*amber fort"); System.out.println("*mehranga fort"); System.out.println("*jal mahal"); break; case 2: System.out.println("welcome to the switzerland of india"); System.out.println("******"); System.out.println("std code[kashmir]------0194"); System.out.println("######"); if(l==1) { System.out.println("contact hotel-----dale"); System.out.println("telephone no"); System.out.println("0194-2445661"); System.out.println("~~~~~"); } else if(l==2) { System.out.println("contact hotel-----akbarin"); System.out.println("telephone no"); System.out.println("0194-2667943"); System.out.println("~~~~~"); } else if(l==3) { System.out.println("contact hotel-----heaven resort"); System.out.println("telephone no"); System.out.println("0194-2309941"); System.out.println("~~~~~"); } else if(l==4) { System.out.println("contact hotel-----milad"); System.out.println("telephone no"); System.out.println("0194-2975149"); System.out.println("~~~~~"); } else if(l==5) { System.out.println("contzct hotel-----batra"); System.out.println("telephone no"); System.out.println("0194-2314576"); System.out.println("~~~~~"); } else if(l>=6&&l<=8) { System.out.println("sorry invalid choice"); } System.out.println("famous places"); System.out.println("*dal lake "); System.out.println("*gul marg"); System.out.println("*mughal garden"); break; case 3: System.out.println("welcome to the garden of spices"); System.out.println("******"); System.out.println("std code[kerela]------0431"); System.out.println("######"); if(l==1) { System.out.println("contact hotel-----hindustan beach restraurant"); System.out.println("telephone no"); System.out.println("0431-2901431"); System.out.println("~~~~~"); } else if(l==2) { System.out.println("contact hotel-----horizon"); System.out.println("telephone no"); System.out.println("0431-2990881"); System.out.println("~~~~~"); } else if(l>=3&&l<=8) { System.out.println("sorry invalid information"); } System.out.println("famous places"); System.out.println("*adyan para falls" ); System.out.println("*kavalam beach" ); System.out.println("*munnar hillscapes" ); System.out.println("*kochi" ); System.out.println("*marari" ); System.out.println("*nellian pathy" ); break; case 4: System.out.println("*welcome to one of the relaxed states of india" ); System.out.println("*** ****** "); System.out.println(" ************ "); System.out.println("std code[goa]------0832"); System.out.println("######"); if(l==1) { System.out.println("contact hotel-----the diwa club majorda"); System.out.println("telephone no"); System.out.println("0832-2443312"); System.out.println("~~~~~"); } else if(l==2) { System.out.println("contact hotel-----ocean suit panaji"); System.out.println("telephone no"); System.out.println("0832-277715"); System.out.println("~~~~~"); } else if(l==3) { System.out.println("contact hotel-----grand hyatt goa"); System.out.println("telephone no"); System.out.println("0832-2894732"); System.out.println("~~~~~"); } else if(l==4) { System.out.println("contact hotel-----the zuri white sands goa verca"); System.out.println("telephone no"); System.out.println("0832-2175491"); System.out.println("~~~~~"); } else if(l==5) { System.out.println("contact hotel-----resort rio baga arpora"); System.out.println("telephone no"); System.out.println("0832-2341727"); System.out.println("~~~~~"); } else if(l==6) { System.out.println("contact hotel-----the zuri resort"); System.out.println("telephone no"); System.out.println("0832-2175432"); System.out.println("~~~~~"); } else if(l>=7&&l<=8) { System.out.println("sorry no information available"); } System.out.println("famous places"); System.out.println("*agonda beach"); System.out.println("*cavalossin beach"); System.out.println("*palolem beach"); System.out.println("*mandrem"); System.out.println("*rels magos fort"); System.out.println("*morjim"); System.out.println("*mahalaxmi temple"); break; case 5: System.out.println("*welcome to the city of joy" ); System.out.println("*** ****** "); System.out.println(" ************ "); System.out.println("std code[kolkata]------0033"); System.out.println("######"); if(l==1) { System.out.println("contact hotel-----kolkata taj hotel"); System.out.println("telephone no"); System.out.println("0033-2790011"); System.out.println("~~~~~"); } else if(l==2) { System.out.println("contact hotel-----taj bengal"); System.out.println("telephone no"); System.out.println("0033-2911051"); System.out.println("~~~~~"); } else if(l==3) { System.out.println("contact hotel-----the oberoi grand"); System.out.println("telephone no"); System.out.println("0033-277133"); System.out.println("~~~~~"); } else if(l==4) { System.out.println("contact hotel-----park plaza"); System.out.println("telephone no"); System.out.println("0033-291475"); System.out.println("~~~~~"); } else if(l>=5&&l<=8) { System.out.println("sorry no information available"); } System.out.println("famous places"); System.out.println("*marble palace"); System.out.println("*jorasanko thakur bari"); System.out.println("*victoria memorial"); System.out.println("*dakhineswar kali bari"); System.out.println("*shaheed minar"); break; case 6: System.out.println("*welcome to the city of dreams" ); System.out.println("*** ****** "); System.out.println(" ************ "); System.out.println("std code[maharashtra]------0022"); System.out.println("######"); if(l==1) { System.out.println("contact hotel-----renaissance mumbai"); System.out.println("telephone no"); System.out.println("0022-2145787"); System.out.println("~~~~~"); } else if(l==2) { System.out.println("contact hotel-----sofitel hotel"); System.out.println("telephone no"); System.out.println("0022-2497972"); System.out.println("~~~~~"); } else if(l==3) { System.out.println("contact hotel-----hotel spree shivai"); System.out.println("telephone no"); System.out.println("0022-2879456"); System.out.println("~~~~~"); } else if(l==4) { System.out.println("contact hotel-----hotel lalit mumbai"); System.out.println("telephone no"); System.out.println("0022-233122"); System.out.println("~~~~~"); } else if(l==5) { System.out.println("contact hotel----convention centre"); System.out.println("telephone no"); System.out.println("0022-2197561"); System.out.println("~~~~~"); } else if(l>=6&&l<=8) { System.out.println("sorry no information available"); } System.out.println("famous places"); System.out.println("*siddhivinayak "); System.out.println("*ellora caves"); System.out.println("*ajanta caves"); break; case 7: System.out.println("*welcome to the city of rallies" ); System.out.println("*** ****** "); System.out.println(" ************ "); System.out.println("std code[delhi]------0011"); System.out.println("######"); if(l==1) { System.out.println("contact hotel-----regent grand"); System.out.println("telephone no"); System.out.println("0011-2197651"); System.out.println("~~~~~"); } else if(l==2) { System.out.println("contact hotel-----aerpora"); System.out.println("telephone no"); System.out.println("0011-2466122"); System.out.println("~~~~~"); } else if(l==3) { System.out.println("contact hotel-----jindal palace"); System.out.println("telephone no"); System.out.println("0011-2166541"); System.out.println("~~~~~"); } else if(l==4) { System.out.println("contact hotel-----taj palace"); System.out.println("telephone no"); System.out.println("0011-2414561"); System.out.println("~~~~~"); } else if(l==5) { System.out.println("contact hotel-----comfort zone"); System.out.println("telephone no"); System.out.println("0011-2991778"); System.out.println("~~~~~"); } else if(l==6) { System.out.println("contact hotel-----heaven"); System.out.println("telephone no"); System.out.println("0011-2514532"); System.out.println("~~~~~"); } else if(l>=7&&l<=8) { System.out.println("sorry invalid information"); } System.out.println("famous places"); System.out.println("*qutub minar"); System.out.println("*red fort"); break; case 8: System.out.println("*welcome to the city of cultures" ); System.out.println("*** ****** "); System.out.println(" ************ "); System.out.println("std code[pnjab]------0183"); System.out.println("######"); if(l==1) { System.out.println("contact hotel-----taj swarna"); System.out.println("telephone no"); System.out.println("0183-247691"); System.out.println("~~~~~"); } else if(l==2) { System.out.println("contact hotel-----hyatt amritsar"); System.out.println("telephone no"); System.out.println("0183-2519289"); System.out.println("~~~~~"); } else if(l==1) { System.out.println("contact hotel-----sawera grand"); System.out.println("telephone no"); System.out.println("0183-2974579"); System.out.println("~~~~~"); } else if(l>=4&&l<=8) { System.out.println("sorry no information available"); } System.out.println("famous places"); System.out.println("*harmendir sahib"); System.out.println("*akaltakhi"); System.out.println("*jallianwala bagh"); break; } } }
import java.util.Random; import java.math.BigInteger; import java.net.HttpCookie; import java.util.GregorianCalendar; /** *Demonstrates the creation of objects and their initializaion *using constructors. * * @author Katie Hager * @version September 13, 2017 */ public class ConstructorDemo { public static void main(String[] args) { Random rand = new Random(); BigInteger num = new BigInteger("9854734875398675867596"); HttpCookie cookie = new HttpCookie("username", "khager"); GregorianCalendar today = new GregorianCalendar(); GregorianCalendar bDay = new GregorianCalendar(1997,06,30); } }
/** *Demonstrates the creaion of objects and their initialization *using constructors * *@author Brandon Mowery *@version September 13, 2017 */ import java.util.Random; import java.math.BigInteger; import java.net.HttpCookie; import java.util.GregorianCalendar; public class ConstructorDemo{ public static void main(String [] args){ Random rand = new Random(); /* like saying Random rand; rand = new Random(); */ BigInteger num = new BigInteger("789890778965453132467954132"); HttpCookie cookie = new HttpCookie("username", "bmowery"); GregorianCalendar today = new GregorianCalendar(); GregorianCalendar bDay = new GregorianCalendar(1999, 02, 10); } }
import java.util.Random; import java.util.GregorianCalendar; import java.math.BigInteger; import java.net.HttpCookie; /* * Demonstrates the creation of objects and their intialization * using constructors * * @author Ben Tewey * @version September 13, 2017 */ public class ConstructorDemo { public static void main(String[] args){ Random rand = new Random(); BigInteger num = new BigInteger("84079672937753627907"); HttpCookie cookie = new HttpCookie("Username", "btewey"); GregorianCalendar today = new GregorianCalendar(); GregorianCalendar bDay = new GregorianCalendar(1998, 07, 07); } }
public class ArithmeticDemo { public static void main(String[] args) { int x = 13; int y = 5; // display sum, difference, product, // quotient, and remainder. System.out.println(x + y); System.out.println(x - y); System.out.println(x * y); System.out.println(x / y); System.out.println(x % y); System.out.println("abc" + "xyz"); int sum = x + y; System.out.println(x + " plus " + y + " is " + sum); } }
public class ArithmeticDemo { public static void main(String[] args){ /* This creates a multiline comment */ int x = 13; int y = 5; int z = x + y; System.out.println(z); int h = z * x; // Display sum, dfference, product, //Quotient, and remainder System.out.println(y - x); System.out.println(h / 2); System.out.println(x % y); } }
public interface Universidad { public void adds(String newAdd); public void edit(String newEdit); public void delete(); public String show(); }
public class ArithmeticDemo { public static void main (String[] args) { /* comment */ int x = 13; int y = 5; //display sum, difference, product, // quotient, and remainder. System.out.println(x + y); System.out.println(x - y); System.out.println(x * y); System.out.println(x / y); System.out.println(x % y); System.out.println("abc" + "xyz"); int sum = x + y; System.out.println(x + " plus " + y + " is " + sum); } }
public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, world!"); } }
import java.util.Random; import java.math.BigInteger; import java.net.HttpCookie; import java.util.GregorianCalendar; /** * Demonstrate the creation of objects and their initialization * using construction. * * @author Brad Brodzik * @version Septemer 13, 2017 */ public class ConstructorDemo { public static void main(String[] args) { Random rand = new Random(); BigInteger num = new BigInteger("8346538765585750337"); HttpCookie cookie = new HttpCookie("username", "bbrodzik"); GregorianCalendar today = new GregorianCalendar(); GregorianCalendar bDay = new GregorianCalendar(1999, 01, 11); } }
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more