Tuesday, May 27, 2014
import java.util.*;
class ilmi
{public static void main(String args[])
{int Dep,info;
Scanner in=new Scanner(System.in);
System.out.println(" Press 1 for Divisi0n of S & T");
System.out.println(" Press 2 for UET");
System.out.println(" Press 3 for Punjab University");
Dep=in.nextInt();
switch(Dep)
{case 1:
System.out.println(" You are in the Divisi0n of S & T");
System.out.println(" Press 11 for Room info");
System.out.println(" Press 12 for Lab info");
System.out.println(" Press 13 for Office info");
System.out.println(" Press 14 for Admin info");
info=in.nextInt();
switch(info)
{case 11:
System.out.println(" There are 150 Rooms in the Divisi0n of S & T");
break;
case 12:
System.out.println(" There are 25 Labs in the Divisi0n of S & T");
break;
case 13:
System.out.println(" There are 15 Offices in the Divisi0n of S & T");
break;
case 14:
System.out.println(" There are 2 Admin Offices in the Divisi0n of S & T");
break;
default:
System.out.println(" Wrong Option");
break;
}
break;
case 2:
System.out.println(" You are in the University Of Engineering & Technology");
System.out.println(" Press 11 for Room info");
System.out.println(" Press 12 for Lab info");
System.out.println(" Press 13 for Office info");
System.out.println(" Press 14 for Admin info");
info=in.nextInt();
switch(info)
{case 11:
System.out.println(" There are 250 Rooms in the University Of Engineering & Technology");
break;
case 12:
System.out.println(" There are 35 Labs in the University Of Engineering & Technology");
break;
case 13:
System.out.println(" There are 25 Offices in the University Of Engineering & Technology");
break;
case 14:
System.out.println(" There are 5 Admin Offices in the University Of Engineering & Technology");
break;
default:
System.out.println(" Wrong Option");
break;
}
break;
case 3:
System.out.println(" You are in the University Of Punjab");
System.out.println(" Press 12 for Room info");
System.out.println(" Press 12 for Lab info");
System.out.println(" Press 13 for Office info");
System.out.println(" Press 14 for Admin info");
info=in.nextInt();
switch(info)
{case 11:
System.out.println(" There are 350 Rooms in the University Of Punjab");
break;
case 12:
System.out.println(" There are 35 Labs in the University Of Punjab");
break;
case 13:
System.out.println(" There are 25 Offices in the University Of Punjab");
break;
case 14:
System.out.println(" There are 7 Admin Offices in the University Of Punjab");
break;
default:
System.out.println(" Wrong Option");
break;
}
break;
default:
System.out.println(" Still you are a child so study at Primary School");
}
}
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment