Вы находитесь на странице: 1из 8

import java.util.

*;
class city
{
int i;
lands ob1=new lands();
Scanner s=new Scanner(System.in);
String ci[]=new String[2];
public void cselect()
{
ci[0]="vijayawada";
ci[1]="hyderabad";
System.out.println("the list of cities are:");
for(i=0;i<2;i++)
{
System.out.println((i+1)+"."+ci[i]);
}
System.out.println("select option");
int option=s.nextInt();
if(option==1)
{
ob1.vijayawada();
}
else if(option==2)
{
ob1.hyderabad();
}
else
{
System.out.println("wrong option try again");
cselect();
}
System.out.println("do you want to check anymore details press 1 if yes or 0 to
exit");
int key=s.nextInt();
if(key==1)
{
cselect();
}
else
System.exit(0);
}
}
class lands
{
int i,hosp;
Scanner o = new Scanner(System.in);
public void vijayawada()
{
String land[]=new String[5];
land[0]="Manipal Estate";
land[1]="Andhra Estate";
land[2]="Ramesh Estate";
land[3]="Rainbow Estate";
land[4]="Vijaya super Estate";
System.out.println("the available Estate are");
for(i=0;i<5;i++)
{
System.out.println((i+1)+"."+land[i]);
}
System.out.println("select a land enter the number of the estate");
hosp=o.nextInt();
if(hosp==1)
{
System.out.println("Adess: NH-5, Soumya Nagar, Tadepalli, Vijayawada, Andhra
Pradesh 521001");
System.out.println("Phone:1800 3001 4000");
System.out.println("to know the details of Estate please login");
System.out.println("do you wish to login??(y or n)");
String s;
s=o.next();
if(s.equals("y"))
{
System.out.println("please enter username");
String username;
username=o.next();
System.out.println("please enter the password");
String password;
password=o.next();
if(username.equals("manipal")&&password.equals("admin"))
{
System.out.println("B Anil Kumar Karnam-- Father");
System.out.println("B Vijaya -- Mother");
System.out.println("B RajKumar-- Son");
System.out.println("B Bhanu -- Daughter");
System.out.println("B Krishna Reddy-- Grand Father");
}
else
{
System.out.println("invalid details exiting program");
System.exit(0);
}
}
else
{
System.out.println("Thank you for visiting");
}
}
else if(hosp==2)
{
System.out.println("Adess: CVR Complex,, Sheshai Sastry St, Governorpet,
Vijayawada, Andhra Pradesh 520002");
System.out.println("Phone:0866 257 1122");
System.out.println("to know the details of Estate please login");
System.out.println("do you wish to login??(y or n)");
String s;
s=o.next();
if(s.equals("y"))
{
System.out.println("please enter username");
String username;
username=o.next();
System.out.println("please enter the password");
String password;
password=o.next();
if(username.equals("andhra")&&password.equals("admin"))
{
System.out.println("S.Gopi Chand-- Father");
System.out.println(".S. Sirisha--Mother");
System.out.println(".S.Chana Sekhar-- Son");
System.out.println(".S.Srimukhi-- Daughter");
System.out.println(".S.Vikranth-- Grand Father");
}
else
{
System.out.println("invalid details exiting program");
System.exit(0);
}
}
else
{
System.out.println("Thank you for visiting");
}
}
else if(hosp==3)
{
System.out.println("Adess: ITI Road, Near ITI College Bus stop, Labbipet,
Vijayawada, Andhra Pradesh 520008");
System.out.println("Phone:0866 247 2000");
System.out.println("to know the details of Estate please login");
System.out.println("do you wish to login??(y or n)");
String s;
s=o.next();
if(s.equals("y"))
{
System.out.println("please enter username");
String username;
username=o.next();
System.out.println("please enter the password");
String password;
password=o.next();
if(username.equals("ramesh")&&password.equals("admin"))
{
System.out.println(".P.Praveen Kumar Jammula-- Father");
System.out.println(". P.Bhaskari-- Mother");
System.out.println(".P.Chekuri Murali-- Son");
System.out.println(".P.vani-- Daughter");
}
else
{
System.out.println("invalid details exiting program");
System.exit(0);
}}
else
{
System.out.println("Thank you for visiting");
}
}
else if(hosp==4)
{
System.out.println("Adess: D.No: 48-10-12/2A, Opp. NTR University of Health
Sciences, Vijayawada, Andhra Pradesh 520008");
System.out.println("Phone:0866 666 9666");
System.out.println("to know the details of Estate please login");
System.out.println("do you wish to login??(y or n)");
String s;
s=o.next();
if(s.equals("y"))
{
System.out.println("please enter username");
String username;
username=o.next();
System.out.println("please enter the password");
String password;
password=o.next();
if(username.equals("rainbow")&&password.equals("admin"))
{
System.out.println(".V Chaitanya-- Father");
System.out.println(".V.Ramprasadhini-- Mother");
System.out.println(".V.Naga Sudheer Kumar Mekala-- Son");
System.out.println(".V.Vidyasagari-- Daughter");
}
else
{
System.out.println("invalid details exiting program");
System.exit(0);
}}
else
{
System.out.println("Thank you for visiting");
}
}
else if(hosp==5)
{
System.out.println("Adess: 29-26-92A, Bolivar Street, Dornakal Road, Suryarao
Pet, Vijayawada, Andhra Pradesh 520002");
System.out.println("Phone:0866 243 5300");
System.out.println("to know the details of Estate please login");
System.out.println("do you wish to login??(y or n)");
String s;
s=o.next();
if(s.equals("y"))
{
System.out.println("please enter username");
String username;
username=o.next();
System.out.println("please enter the password");
String password;
password=o.next();
if(username.equals("vijaya")&&password.equals("admin"))
{
System.out.println(".S.Gopi Chand-- Father");
System.out.println(".S. Sirisha--Mother");
System.out.println(".S.Chana Sekhar-- Son");
System.out.println(".S.Srimukhi-- Daughter");
}
else
{
System.out.println("invalid details exiting program");
System.exit(0);
}}
else
{
System.out.println("Thank you for visiting");
}
}
else
{
System.out.println("wrong option try again");
vijayawada();
}
}
public void hyderabad()
{
String land[]=new String[5];
land[0]="MaxCure Estate ";
land[1]="Continental Estate";
land[2]="Landmark Estate ";
land[3]="American Estate";
land[4]="CARE Estate";
System.out.println("the available lands are");
for(i=0;i<5;i++)
{
System.out.println((i+1)+"."+land[i]);
}
System.out.println("select a Estate enter the number of the Estate");
hosp=o.nextInt();
if(hosp==1)
{
System.out.println("Behind Cyber Towers, Lane Next To McDonalds, Hitech City,
Madhapur, Hyderabad, Telangana 500081");
System.out.println("Phone:040 4540 4540");
System.out.println("to know the details of Estate please login");
System.out.println("do you wish to login??(y or n)");
String s;
s=o.next();
if(s.equals("y"))
{
System.out.println("please enter username");
String username;
username=o.next();
System.out.println("please enter the password");
String password;
password=o.next();
if(username.equals("maxcure")&&password.equals("admin"))
{
System.out.println(".P.Praveen Kumar Jammula-- Father");
System.out.println(". P.Bhaskari-- Mother");
System.out.println(".P.Chekuri Murali-- Son");
System.out.println(".P.vani-- Daughter");
}
else
{
System.out.println("invalid details exiting program");
System.exit(0);
}}
else
{
System.out.println("Thank you for visiting");
}
}
else if(hosp==2)
{
System.out.println("Adess: Plot No. 3, Road No. 2, IT & Financial District,
Nanakramguda, Gachibowli, Hyderabad, Telangana 500035");
System.out.println("Phone:040 6700 0000");
System.out.println("to know the details of Estate please login");
System.out.println("do you wish to login??(y or n)");
String s;
s=o.next();
if(s.equals("y"))
{
System.out.println("please enter username");
String username;
username=o.next();
System.out.println("please enter the password");
String password;
password=o.next();
if(username.equals("continental")&&password.equals("admin"))
{
System.out.println(".B Anil Kumar Karnam-- Father");
System.out.println(".B Vijaya -- Mother");
System.out.println(".B RajKumar-- Son");
System.out.println(".B Bhanu -- Daughter");
}
else
{
System.out.println("invalid details exiting program");
System.exit(0);
}}
else
{
System.out.println("Thank you for visiting");
}
}
else if(hosp==3)
{
System.out.println("Adess: MCK Block2, Near JNTU Metro Station,Opp.Vasantha
Nagar Arch, Hyder Nagar Main Road,Kukatpally, Hyderabad, Telangana 500085");
System.out.println("Phone:040 4545 9999");
System.out.println("to know the details of Estate please login");
System.out.println("do you wish to login??(y or n)");
String s;
s=o.next();
if(s.equals("y"))
{
System.out.println("please enter username");
String username;
username=o.next();
System.out.println("please enter the password");
String password;
password=o.next();
if(username.equals("landmark")&&password.equals("admin"))
{
System.out.println(".A.Sudharshan Reddy Bellur-- Father");
System.out.println(".A.Kamal Kumar Chawla-- Mother");
System.out.println(".A.Sudha Kampati-- Son");
System.out.println(".A.Sandhya-- Daughter");
}
else
{
System.out.println("invalid details exiting program");
System.exit(0);
}}
else
{
System.out.println("Thank you for visiting");
}
}
else if(hosp==4)
{
System.out.println("Adess: 1-100/1/CCH, Near aparna Sarovar, Nallagandla,
Serilingampally, Hyderabad, Telangana 530019");
System.out.println("Phone:040 6719 9999");
System.out.println("to know the details of Estate please login");
System.out.println("do you wish to login??(y or n)");
String s;
s=o.next();
if(s.equals("y"))
{
System.out.println("please enter username");
String username;
username=o.next();
System.out.println("please enter the password");
String password;
password=o.next();
if(username.equals("american")&&password.equals("admin"))
{
System.out.println(".S.Gopi Chand-- Father");
System.out.println(".S. Sirisha--Mother");
System.out.println(".S.Chana Sekhar-- Son");
System.out.println(".S.Srimukhi-- Daughter");
System.out.println(".S.Vikranth-- Grand Father");
}
else
{
System.out.println("invalid details exiting program");
System.exit(0);
}}
else
{
System.out.println("Thank you for visiting");
}
}
else if(hosp==5)
{
System.out.println("Adess: Road No. 1, Banjara Hills, Hyderabad, Telangana
500034");
System.out.println("Phone:040 3041 8888");
System.out.println("to know the details of Estate please login");
System.out.println("do you wish to login??(y or n)");
String s;
s=o.next();
if(s.equals("y"))
{
System.out.println("please enter username");
String username;
username=o.next();
System.out.println("please enter the password");
String password;
password=o.next();
if(username.equals("care")&&password.equals("admin"))
{
System.out.println(".V Chaitanya-- Father");
System.out.println(".V.Ramprasadhini-- Mother");
System.out.println(".V.Naga Sudheer Kumar Mekala-- Son");
System.out.println(".V.Vidyasagari-- Daughter");
}
else
{
System.out.println("invalid details exiting program");
System.exit(0);
}}
else
{
System.out.println("Thank you for visiting");
}
}
else
{
System.out.println("wrong option try again");
hyderabad();
}
}
}
class estate
{
public static void main(String args[])
{
System.out.println("Welcome to Real Estate information system");
city ob1=new city();
lands ob=new lands();
ob1.cselect();
}
}

Вам также может понравиться