Thursday, April 5, 2012

HACK UR MOZILLA FIREFOX AND BROWSE FOR FREE!!

Today i am going to show how to hack mozilla firefox with airtel modem.
connect ur mobile phone or airtel modem with pc.
then try the following steps.
1.OPEN YOUR FIREFOX BROWSER
2.GOTO OPTIONS->OPTIONS



3.open "ADVANCED" TAB


4.then click on "SETTINGS"



5.SELECT Manual proxy Configuration
6.type sneakme.net in HTTP proxy field



7.change the port no to 80
8.click ok
9.type fb.me on address bar.
10.start your browsing.

Tuesday, November 8, 2011

simple java script coding

click HERE to download my javascript coding for ONLINE GPA CALCULATOR


AND

click HERE to download my javascript coing for ONLINE SCIENTIFIC CALCULATOR

Monday, November 7, 2011

"online gpa calculator" using javascript with html

ONLINE GPA CALCULATOR


ENTER SUBJECT CREDIT ENTER GRADE

SUBJECT 1

SUBJECT 2

SUBJECT 3

SUBJECT 4

SUBJECT 5

SUBJECT 6

SUBJECT 7

SUBJECT 8

SUBJECT 9

SUBJECT 10




RESULT


designed by thaveethu

Friday, October 28, 2011

CALCULATOR AND CONVERTOR MOBILE APPLICATION

I had create a calculator and convertor "mobile" application(java platform). click here to download



//j2me coding for calculator and unit convertor
//by thaveethu
//to download application click here
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

//java mobile application calculator and convertor
//calculator application for java mobile
//unit convertor application for javaplatform
//j2me coding for convertor
//free download java calculator and unit convertor
//calculator mobile application free download
//free mobile application download
public class PocketCalc extends MIDlet implements CommandListener {

private boolean midletPaused = false;
public TextField t1,t2,t3,vt1,vt2,vt3;
int tha,tha1,tha2,tha3,tha4,tha5,tha6,tha7,tha8,tha9,th10;
ChoiceGroup len,len1,len2,len3,len4,len5;
public double fact(double d1)
{

double b=1;
for(int i=1;i<=d1;i++)
{
b=b*i;
}

return b;
}


private Form form;
private List list;
private Form form1;
private Form form2;
private Form form3;
private List list1;
private Form form4;
private Form form5;
private Form form6;
private Command backCommand;
private Command backCommand1;
private Command exitCommand;
private Command itemCommand1;
private Command itemCommand;
private Command itemCommand3;
private Command itemCommand2;
private Command backCommand2;
private Command itemCommand4;
private Command itemCommand5;
private Command itemCommand6;
private Command itemCommand7;
private Command backCommand3;
private Command itemCommand8;
private Command itemCommand9;
private Command itemCommand12;
private Command itemCommand10;
private Command itemCommand11;
private Command okCommand;
private Command okCommand1;
private Command okCommand2;
private Image image1;
private Image image4;
private Image image3;
private Image image2;
private Ticker ticker1;
private Image image6;
private Image image5;
private Image image7;
private Image image8;

public PocketCalc() {
}


private void initialize () {

}

public void startMIDlet () {

switchDisplayable (null, getList ());

}

public void resumeMIDlet () {

}

public void switchDisplayable (Alert alert, Displayable nextDisplayable) {

Display display = getDisplay ();
if (alert == null) {
display.setCurrent (nextDisplayable);
} else {
display.setCurrent (alert, nextDisplayable);
}

}



public void commandAction (Command command, Displayable displayable) {

if (displayable == form) {
if (command == backCommand) {

switchDisplayable (null, getList ());

} else if (command == itemCommand) {

double a=Double.parseDouble(t1.getString());
double b=Double.parseDouble(t2.getString());
double c=a+b;
String ss=Double.toString(c);

t3.setString(ss);
t1.setString(ss);
t2.setString("");


} else if (command == itemCommand1) {
double a=Double.parseDouble(t1.getString());
double b=Double.parseDouble(t2.getString());
double c=a-b;
String ss=Double.toString(c);

t3.setString(ss);
t1.setString(ss);
t2.setString("");


} else if (command == itemCommand10) {
double a=Double.parseDouble(t1.getString());
double c=a;
double b=Double.parseDouble(t2.getString());
double i=b;
if(i!=0)
{
for(;i>1;i--)
{
a=a*c;
}
}
t3.setString(""+a);


} else if (command == itemCommand11) {
double a=Double.parseDouble(t1.getString());
double b=Double.parseDouble(t2.getString());
double d3=fact(a);
double d4=fact(a-b);
double d5=d3/d4;
t3.setString(""+d5);


} else if (command == itemCommand12) {
double a=Double.parseDouble(t1.getString());
double b=Double.parseDouble(t2.getString());
double d3=fact(a);
double d4=fact(a-b);
double d5=fact(b);
double d6=d3/(d4*d5);
t3.setString(""+d6);


} else if (command == itemCommand2) {
double a=Double.parseDouble(t1.getString());
double b=Double.parseDouble(t2.getString());
double c=a*b;
String ss=Double.toString(c);

t3.setString(ss);
t1.setString(ss);
t2.setString("");


} else if (command == itemCommand3) {
double a=Double.parseDouble(t1.getString());
double b=Double.parseDouble(t2.getString());
double c=a/b;
String ss=Double.toString(c);

t3.setString(ss);
t1.setString(ss);
t2.setString("");


} else if (command == itemCommand4) {
t3.setString("");
t1.setString("");
t2.setString("");


} else if (command == itemCommand5) {
double a=Double.parseDouble(t1.getString());
double b=Double.parseDouble(t2.getString());
double c=a/b;
double d=c*100;
//String ss=Float.toString(d);
t3.setString(+d+"%");
switchDisplayable (null, getForm ());

} else if (command == itemCommand6) {
double a=Double.parseDouble(t1.getString());
double d1=Math.sin(a);
t3.setString(""+d1);


} else if (command == itemCommand7) {
double a=Double.parseDouble(t1.getString());
double d1=Math.cos(a);
t3.setString(""+d1);

} else if (command == itemCommand8) {
double a=Double.parseDouble(t1.getString());
double d1=Math.tan(a);
t3.setString(""+d1);


} else if (command == itemCommand9) {
double a=Double.parseDouble(t1.getString());
double b=fact(a);
t3.setString(""+b);


}
} else if (displayable == form1) {
if (command == backCommand) {

switchDisplayable (null, getList ());

}
} else if (displayable == form2) {
if (command == backCommand3) {

switchDisplayable (null, getList ());

}
} else if (displayable == form3) {
if (command == backCommand) {

switchDisplayable (null, getList ());

}
} else if (displayable == form4) {
if (command == backCommand) {

switchDisplayable (null, getList1 ());

} else if (command == okCommand) {


if((len.getSelectedIndex()==tha)&&(len1.getSelectedIndex()==tha))
{
double vs=Double.parseDouble(vt1.getString());
vt2.setString(""+vs);
}
else if((len.getSelectedIndex()==tha)&&(len1.getSelectedIndex()==tha1))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs/1000;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha)&&(len1.getSelectedIndex()==tha2))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*3.280839895;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha)&&(len1.getSelectedIndex()==tha3))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*100;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha)&&(len1.getSelectedIndex()==tha4))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs/1609.344 ;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha)&&(len1.getSelectedIndex()==tha5))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*39.37007874 ;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha)&&(len1.getSelectedIndex()==tha6))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*1.0936132983 ;
vt2.setString(""+vs1);
}
else
if((len.getSelectedIndex()==tha1)&&(len1.getSelectedIndex()==tha))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*1000;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha1)&&(len1.getSelectedIndex()==tha1))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha1)&&(len1.getSelectedIndex()==tha2))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*3280.839895 ;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha1)&&(len1.getSelectedIndex()==tha3))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*100000;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha1)&&(len1.getSelectedIndex()==tha4))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.62137119224 ;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha1)&&(len1.getSelectedIndex()==tha5))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*39370.07874 ;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha1)&&(len1.getSelectedIndex()==tha6))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*1093.6132983 ;
vt2.setString(""+vs1);
}
else
if((len.getSelectedIndex()==tha2)&&(len1.getSelectedIndex()==tha))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs/3.280839895 ;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha2)&&(len1.getSelectedIndex()==tha1))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.0003048;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha2)&&(len1.getSelectedIndex()==tha2))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha2)&&(len1.getSelectedIndex()==tha3))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*30.48 ;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha2)&&(len1.getSelectedIndex()==tha4))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.00018939393939;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha2)&&(len1.getSelectedIndex()==tha5))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*12 ;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha2)&&(len1.getSelectedIndex()==tha6))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.33333333333 ;
vt2.setString(""+vs1);
}
else
if((len.getSelectedIndex()==tha3)&&(len1.getSelectedIndex()==tha))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs/100;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha3)&&(len1.getSelectedIndex()==tha1))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs/100000;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha3)&&(len1.getSelectedIndex()==tha2))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.03280839895;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha3)&&(len1.getSelectedIndex()==tha3))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha3)&&(len1.getSelectedIndex()==tha4))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.0000062137119224 ;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha3)&&(len1.getSelectedIndex()==tha5))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.3937007874 ;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha3)&&(len1.getSelectedIndex()==tha6))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.010936132983;
vt2.setString(""+vs1);
}
else
if((len.getSelectedIndex()==tha4)&&(len1.getSelectedIndex()==tha))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*1609.344 ;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha4)&&(len1.getSelectedIndex()==tha1))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*1.609344;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha4)&&(len1.getSelectedIndex()==tha2))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*5280;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha4)&&(len1.getSelectedIndex()==tha3))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*160934.4;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha4)&&(len1.getSelectedIndex()==tha4))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha4)&&(len1.getSelectedIndex()==tha5))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*63360;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha4)&&(len1.getSelectedIndex()==tha6))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*1760;
vt2.setString(""+vs1);
}
else
if((len.getSelectedIndex()==tha5)&&(len1.getSelectedIndex()==tha))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.0254 ;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha5)&&(len1.getSelectedIndex()==tha1))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.0000254 ;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha5)&&(len1.getSelectedIndex()==tha2))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.083333333333 ;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha5)&&(len1.getSelectedIndex()==tha3))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*2.54;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha5)&&(len1.getSelectedIndex()==tha4))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.000015782828283 ;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha5)&&(len1.getSelectedIndex()==tha5))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha5)&&(len1.getSelectedIndex()==tha6))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.027777777778 ;
vt2.setString(""+vs1);
}
else
if((len.getSelectedIndex()==tha6)&&(len1.getSelectedIndex()==tha))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.9144 ;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha6)&&(len1.getSelectedIndex()==tha1))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.0009144 ;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha6)&&(len1.getSelectedIndex()==tha2))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*3 ;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha6)&&(len1.getSelectedIndex()==tha3))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*91.44;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha6)&&(len1.getSelectedIndex()==tha4))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.00056818181818 ;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha6)&&(len1.getSelectedIndex()==tha5))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*36;
vt2.setString(""+vs1);
}
else if((len.getSelectedIndex()==tha6)&&(len1.getSelectedIndex()==tha6))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs;
vt2.setString(""+vs1);
}

}
} else if (displayable == form5) {
if (command == backCommand) {

switchDisplayable (null, getList1 ());

} else if (command == okCommand1) {


if((len2.getSelectedIndex()==tha)&&(len3.getSelectedIndex()==tha))
{
double vs=Double.parseDouble(vt1.getString());
vt2.setString(""+vs);
}
else if((len2.getSelectedIndex()==tha)&&(len3.getSelectedIndex()==tha1))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.001;
vt2.setString(""+vs1);
}
else if((len2.getSelectedIndex()==tha)&&(len3.getSelectedIndex()==tha2))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.0022046226218;
vt2.setString(""+vs1);
}
else if((len2.getSelectedIndex()==tha)&&(len3.getSelectedIndex()==tha3))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs* 0.03527396195;
vt2.setString(""+vs1);
}
else if((len2.getSelectedIndex()==tha)&&(len3.getSelectedIndex()==tha4))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs/1000000;
vt2.setString(""+vs1);
}
else
if((len2.getSelectedIndex()==tha1)&&(len3.getSelectedIndex()==tha))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*1000;
vt2.setString(""+vs1);
}
else if((len2.getSelectedIndex()==tha1)&&(len3.getSelectedIndex()==tha1))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs;
vt2.setString(""+vs1);
}
else if((len2.getSelectedIndex()==tha1)&&(len3.getSelectedIndex()==tha2))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*2.2046226218 ;
vt2.setString(""+vs1);
}
else if((len2.getSelectedIndex()==tha1)&&(len3.getSelectedIndex()==tha3))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*35.27396195;
vt2.setString(""+vs1);
}
else if((len2.getSelectedIndex()==tha1)&&(len3.getSelectedIndex()==tha4))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.001;
vt2.setString(""+vs1);
}
else
if((len2.getSelectedIndex()==tha2)&&(len3.getSelectedIndex()==tha))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*453.59237;
vt2.setString(""+vs1);
}
else if((len2.getSelectedIndex()==tha2)&&(len3.getSelectedIndex()==tha1))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.45359237;
vt2.setString(""+vs1);
}
else if((len2.getSelectedIndex()==tha2)&&(len3.getSelectedIndex()==tha2))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs;
vt2.setString(""+vs1);
}
else if((len2.getSelectedIndex()==tha2)&&(len3.getSelectedIndex()==tha3))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*16;
vt2.setString(""+vs1);
}
else if((len2.getSelectedIndex()==tha2)&&(len3.getSelectedIndex()==tha4))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.00045359237;
vt2.setString(""+vs1);
}
else
if((len2.getSelectedIndex()==tha3)&&(len3.getSelectedIndex()==tha))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*28.349523125;
vt2.setString(""+vs1);
}
else if((len2.getSelectedIndex()==tha3)&&(len3.getSelectedIndex()==tha1))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.028349523125;
vt2.setString(""+vs1);
}
else if((len2.getSelectedIndex()==tha3)&&(len3.getSelectedIndex()==tha2))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.0625;
vt2.setString(""+vs1);
}
else if((len2.getSelectedIndex()==tha3)&&(len3.getSelectedIndex()==tha3))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs;
vt2.setString(""+vs1);
}
else if((len2.getSelectedIndex()==tha3)&&(len3.getSelectedIndex()==tha4))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*0.000028349523125;
vt2.setString(""+vs1);
}
else
if((len2.getSelectedIndex()==tha4)&&(len3.getSelectedIndex()==tha))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*1000000;
vt2.setString(""+vs1);
}
else if((len2.getSelectedIndex()==tha4)&&(len3.getSelectedIndex()==tha1))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*1000;
vt2.setString(""+vs1);
}
else if((len2.getSelectedIndex()==tha4)&&(len3.getSelectedIndex()==tha2))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*2204.6226218;
vt2.setString(""+vs1);
}
else if((len2.getSelectedIndex()==tha4)&&(len3.getSelectedIndex()==tha3))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs*35273.96195;
vt2.setString(""+vs1);
}
else if((len2.getSelectedIndex()==tha4)&&(len3.getSelectedIndex()==tha4))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs;
vt2.setString(""+vs1);
}
}
} else if (displayable == form6) {
if (command == backCommand) {

switchDisplayable (null, getList1 ());

} else if (command == okCommand2) {


if((len4.getSelectedIndex()==tha)&&(len5.getSelectedIndex()==tha))
{
double vs=Double.parseDouble(vt1.getString());
vt2.setString(""+vs);
}
else if((len4.getSelectedIndex()==tha)&&(len5.getSelectedIndex()==tha1))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=(vs*1.8)+32;
vt2.setString(""+vs1);
}
else if((len4.getSelectedIndex()==tha)&&(len5.getSelectedIndex()==tha2))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs+273.15;
vt2.setString(""+vs1);
}
else
if((len4.getSelectedIndex()==tha1)&&(len5.getSelectedIndex()==tha))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=(vs-32)/1.8;
vt2.setString(""+vs1);
}
else if((len4.getSelectedIndex()==tha1)&&(len5.getSelectedIndex()==tha1))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs;
vt2.setString(""+vs1);
}
else if((len4.getSelectedIndex()==tha1)&&(len5.getSelectedIndex()==tha2))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=((vs-32)/(1.8))+ 273.15;
vt2.setString(""+vs1);
}
else
if((len4.getSelectedIndex()==tha2)&&(len5.getSelectedIndex()==tha))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=(vs-273.15);
vt2.setString(""+vs1);
}
else if((len4.getSelectedIndex()==tha2)&&(len5.getSelectedIndex()==tha1))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=(vs*1.8)-459.67;
vt2.setString(""+vs1);
}
else if((len4.getSelectedIndex()==tha2)&&(len5.getSelectedIndex()==tha2))
{
double vs=Double.parseDouble(vt1.getString());
double vs1=vs;
vt2.setString(""+vs1);
}
}
} else if (displayable == list) {
if (command == List.SELECT_COMMAND) {

listAction ();

} else if (command == exitCommand) {

exitMIDlet ();

}
} else if (displayable == list1) {
if (command == List.SELECT_COMMAND) {

list1Action ();

} else if (command == backCommand) {

switchDisplayable (null, getList ());

}
}

}




public Form getForm () {
if (form == null) {

form = new Form ("ENTER INPUT");
form.addCommand (getBackCommand ());
form.addCommand (getItemCommand ());
form.addCommand (getItemCommand1 ());
form.addCommand (getItemCommand2 ());
form.addCommand (getItemCommand3 ());
form.addCommand (getItemCommand5 ());
form.addCommand (getItemCommand6 ());
form.addCommand (getItemCommand7 ());
form.addCommand (getItemCommand8 ());
form.addCommand (getItemCommand9 ());
form.addCommand (getItemCommand10 ());
form.addCommand (getItemCommand4 ());
form.addCommand (getItemCommand11 ());
form.addCommand (getItemCommand12 ());
form.setCommandListener (this);
t1=new TextField("ENTER FIRST INPUT","",20,TextField.DECIMAL);
t2=new TextField("ENTER SECOND INPUT","",20,TextField.DECIMAL);
t3=new TextField("RESULT","",20,TextField.ANY);
form.append(t1);
form.append(t2);
form.append(t3);

}
return form;
}

public Command getBackCommand () {
if (backCommand == null) {

backCommand = new Command ("Back", Command.BACK, 0);

}
return backCommand;
}

public List getList () {
if (list == null) {

list = new List ("WELCOME", Choice.IMPLICIT);
list.append ("CALCULATOR", getImage1 ());
list.append ("CONVERTOR", getImage5 ());
list.append ("HELP", getImage2 ());
list.append ("ABOUT", getImage3 ());
list.append ("EXIT", getImage4 ());
list.addCommand (getExitCommand ());
list.setCommandListener (this);
list.setFitPolicy (Choice.TEXT_WRAP_DEFAULT);
list.setSelectedFlags (new boolean[] { false, false, false, false, false });

}
return list;
}

public void listAction () {

String __selectedString = getList ().getString (getList ().getSelectedIndex ());
if (__selectedString != null) {
if (__selectedString.equals ("CALCULATOR")) {

switchDisplayable (null, getForm ());

} else if (__selectedString.equals ("CONVERTOR")) {

switchDisplayable (null, getList1 ());

} else if (__selectedString.equals ("HELP")) {

switchDisplayable (null, getForm1 ());

} else if (__selectedString.equals ("ABOUT")) {

switchDisplayable (null, getForm3 ());

} else if (__selectedString.equals ("EXIT")) {

exitMIDlet ();

}
}

}

public Command getBackCommand1 () {
if (backCommand1 == null) {

backCommand1 = new Command ("Back", Command.BACK, 0);

}
return backCommand1;
}

public Command getExitCommand () {
if (exitCommand == null) {

exitCommand = new Command ("Exit", Command.EXIT, 0);

}
return exitCommand;
}

public Command getItemCommand () {
if (itemCommand == null) {

itemCommand = new Command ("ADD", Command.ITEM, 0);

}
return itemCommand;
}

public Command getItemCommand1 () {
if (itemCommand1 == null) {

itemCommand1 = new Command ("SUBTRACTION", Command.ITEM, 0);

}
return itemCommand1;
}

public Command getItemCommand2 () {
if (itemCommand2 == null) {

itemCommand2 = new Command ("MULTIPLICATION", Command.ITEM, 0);

}
return itemCommand2;
}

public Command getItemCommand3 () {
if (itemCommand3 == null) {

itemCommand3 = new Command ("DIVISION", Command.ITEM, 0);

}
return itemCommand3;
}

public Command getBackCommand2 () {
if (backCommand2 == null) {

backCommand2 = new Command ("Back", Command.BACK, 0);

}
return backCommand2;
}

public Command getItemCommand4 () {
if (itemCommand4 == null) {

itemCommand4 = new Command ("CLEAR", Command.ITEM, 0);

}
return itemCommand4;
}

public Command getItemCommand5 () {
if (itemCommand5 == null) {

itemCommand5 = new Command ("PERCENTAGE", Command.ITEM, 0);

}
return itemCommand5;
}

public Image getImage1 () {
if (image1 == null) {

try {
image1 = Image.createImage ("/calculator.png");
} catch (java.io.IOException e) {
e.printStackTrace ();
}

}
return image1;
}

public Image getImage2 () {
if (image2 == null) {

try {
image2 = Image.createImage ("/exclamation.png");
} catch (java.io.IOException e) {
e.printStackTrace ();
}

}
return image2;
}

public Image getImage3 () {
if (image3 == null) {

try {
image3 = Image.createImage ("/eye.png");
} catch (java.io.IOException e) {
e.printStackTrace ();
}

}
return image3;
}

public Image getImage4 () {
if (image4 == null) {

try {
image4 = Image.createImage ("/asterisk_orange.png");
} catch (java.io.IOException e) {
e.printStackTrace ();
}

}
return image4;
}

public Form getForm1 () {
if (form1 == null) {

form1 = new Form ("HELP");
form1.addCommand (getBackCommand ());
form1.setCommandListener (this);
form1.append("CALCULATOR\n1.ENTER FIRST INPUT \n 2.ENTER SECOND INPUT \n 3.PRESS MORE AND CHOOSE OPERATION\n EX.if you want to find ncr, enter 'n' in first textfield. then enter 'r' value in second text field.then press MORE-> ncr\n CONVERTOR:\n1.choose the unit from \"FROM\" and \"TO\" choice group \nthen\n 2.ENTER INPUT\n and press \"CONVERT\"");
}
return form1;
}

public Form getForm2 () {
if (form2 == null) {

form2 = new Form ("form2");
form2.addCommand (getBackCommand3 ());
form2.setCommandListener (this);
form2.append("i am thaveethu....an engineering student\nGCE \n tirunelveli");
}
return form2;
}

public Command getBackCommand3 () {
if (backCommand3 == null) {

backCommand3 = new Command ("Back", Command.BACK, 0);

}
return backCommand3;
}

public Command getItemCommand6 () {
if (itemCommand6 == null) {

itemCommand6 = new Command ("sin", Command.ITEM, 0);

}
return itemCommand6;
}

public Command getItemCommand7 () {
if (itemCommand7 == null) {

itemCommand7 = new Command ("cos", Command.ITEM, 0);

}
return itemCommand7;
}

public Command getItemCommand8 () {
if (itemCommand8 == null) {

itemCommand8 = new Command ("tan", Command.ITEM, 0);

}
return itemCommand8;
}

public Command getItemCommand9 () {
if (itemCommand9 == null) {

itemCommand9 = new Command ("factorial", Command.ITEM, 0);

}
return itemCommand9;
}

public Form getForm3 () {
if (form3 == null) {

form3 = new Form ("ABOUT");
form3.setTicker (getTicker1 ());
form3.addCommand (getBackCommand ());
form3.setCommandListener (this);
form3.append("i am thaveethu\n computer science and engineering student of government college og engineering \n SEND YOUR SUGGESTION TO \n thaveethu1080@gmail.com BLOG:\n www.universalpctricks.blogspot.com \n website: \n www.thaveethupcm.appspot.com");
}
return form3;
}

public Ticker getTicker1 () {
if (ticker1 == null) {

ticker1 = new Ticker ("\thttp://facebook.com/thaveethu.gce");

}
return ticker1;
}

public Command getItemCommand10 () {
if (itemCommand10 == null) {

itemCommand10 = new Command ("power", Command.ITEM, 0);

}
return itemCommand10;
}

public Command getItemCommand11 () {
if (itemCommand11 == null) {

itemCommand11 = new Command ("npr", Command.ITEM, 0);

}
return itemCommand11;
}

public Command getItemCommand12 () {
if (itemCommand12 == null) {

itemCommand12 = new Command ("ncr", Command.ITEM, 0);

}
return itemCommand12;
}

public List getList1 () {
if (list1 == null) {

list1 = new List ("CONVERTORS", Choice.IMPLICIT);
list1.append ("LENGTH", getImage6 ());
list1.append ("WEIGHT", getImage8 ());
list1.append ("TEMPERATURE", getImage7 ());
list1.addCommand (getBackCommand ());
list1.setCommandListener (this);
list1.setSelectedFlags (new boolean[] { false, false, false });

}
return list1;
}

public void list1Action () {

String __selectedString = getList1 ().getString (getList1 ().getSelectedIndex ());
if (__selectedString != null) {
if (__selectedString.equals ("LENGTH")) {

switchDisplayable (null, getForm4 ());

} else if (__selectedString.equals ("WEIGHT")) {

switchDisplayable (null, getForm5 ());

} else if (__selectedString.equals ("TEMPERATURE")) {

switchDisplayable (null, getForm6 ());

}
}

}

public Form getForm4 () {
if (form4 == null) {

form4 = new Form ("LENGTH CONVERTOR");
form4.addCommand (getBackCommand ());
form4.addCommand (getOkCommand ());
form4.setCommandListener (this);
len = new ChoiceGroup ("FROM", Choice.POPUP);
tha=len.append("METER", null);
tha1=len.append("KM", null);
tha2= len.append("FEET",null);
tha3= len.append("CM",null);
tha4= len.append("MILE",null);
tha5= len.append("INCH",null);
tha6= len.append("YARD",null);

form4.append(len);
len1 = new ChoiceGroup ("TO", Choice.POPUP);
tha=len1.append("METER", null);
tha1=len1.append("KM", null);
tha2= len1.append("FEET",null);
tha3= len1.append("CM",null);
tha4= len1.append("MILE",null);
tha5= len1.append("INCH",null);
tha6= len1.append("YARD",null);

form4.append(len1);
vt1=new TextField("INPUT","",20,TextField.DECIMAL);
form4.append(vt1);
vt2=new TextField("OUTPUT","",20,TextField.DECIMAL);
form4.append(vt2);

}
return form4;
}

public Command getOkCommand () {
if (okCommand == null) {

okCommand = new Command ("CONVERT", Command.OK, 0);

}
return okCommand;
}

public Image getImage5 () {
if (image5 == null) {

try {
image5 = Image.createImage ("/compass.png");
} catch (java.io.IOException e) {
e.printStackTrace ();
}

}
return image5;
}

public Image getImage6 () {
if (image6 == null) {

try {
image6 = Image.createImage ("/sport_8ball.png");
} catch (java.io.IOException e) {
e.printStackTrace ();
}

}
return image6;
}

public Form getForm5 () {
if (form5 == null) {

form5 = new Form ("WEIGHT");
form5.addCommand (getBackCommand ());
form5.addCommand (getOkCommand1 ());
form5.setCommandListener (this);
len2= new ChoiceGroup ("FROM", Choice.POPUP);
tha=len2.append("GRAM", null);
tha1=len2.append("KILOGRAM", null);
tha2= len2.append("POUND",null);
tha3= len2.append("OUNCE",null);
tha4= len2.append("TON",null);


form5.append(len2);
len3 = new ChoiceGroup ("TO", Choice.POPUP);
tha=len3.append("GRAM", null);
tha1=len3.append("KILOGRAM", null);
tha2= len3.append("POUND",null);
tha3= len3.append("OUNCE",null);
tha4= len3.append("TON",null);
form5.append(len3);
vt1=new TextField("INPUT","",20,TextField.DECIMAL);
form5.append(vt1);
vt2=new TextField("OUTPUT","",20,TextField.DECIMAL);
form5.append(vt2);
}
return form5;
}

public Command getOkCommand1 () {
if (okCommand1 == null) {

okCommand1 = new Command ("CONVERT", Command.OK, 0);

}
return okCommand1;
}

public Form getForm6 () {
if (form6 == null) {

form6 = new Form ("TEMPERATURE");
form6.addCommand (getBackCommand ());
form6.addCommand (getOkCommand2 ());
form6.setCommandListener (this);
len4= new ChoiceGroup ("FROM", Choice.POPUP);
tha=len4.append("CELCIUS", null);
tha1=len4.append("FAHRENHEIT", null);
tha2= len4.append("KELVIN",null);
form6.append(len4);
len5 = new ChoiceGroup ("TO", Choice.POPUP);
tha=len5.append("CELCIUS", null);
tha1=len5.append("FAHRENHEIT", null);
tha2= len5.append("KELVIN",null);
form6.append(len5);
vt1=new TextField("INPUT","",20,TextField.DECIMAL);
form6.append(vt1);
vt2=new TextField("OUTPUT","",20,TextField.DECIMAL);
form6.append(vt2);
}
return form6;
}

public Command getOkCommand2 () {
if (okCommand2 == null) {

okCommand2 = new Command ("CONVERT", Command.OK, 0);

}
return okCommand2;
}

public Image getImage7 () {
if (image7 == null) {

try {
image7 = Image.createImage ("/rosette.png");
} catch (java.io.IOException e) {
e.printStackTrace ();
}

}
return image7;
}

public Image getImage8 () {
if (image8 == null) {

try {
image8 = Image.createImage ("/server.png");
} catch (java.io.IOException e) {
e.printStackTrace ();
}

}
return image8;
}

public void exitMIDlet() {
switchDisplayable(null, null);
destroyApp(true);
notifyDestroyed();
}

public void startApp() {
if (midletPaused) {
resumeMIDlet();
} else {
initialize();
startMIDlet();
}
midletPaused = false;
}


public void pauseApp() {
midletPaused = true;
}


public void destroyApp(boolean unconditional) {
}
}



click here to download

Saturday, October 22, 2011

j2me coding for GPA calculator

//by thaveethu
//for anna university
// want to download application click here
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class GpaCalcc extends MIDlet implements CommandListener {

private boolean midletPaused = false;
public TextField

ma,re,ds,dpsd,adc,evs,oop,dlab,dslab,olab,elab;//cse
public TextField

daa,coa,ma4,dbms,os,mm,mlab,oslab,dblab,elab4,re1;
public TextField

ma5,toc,ss,se,cn,pp,nlab,sslab,jlab,elab5,re2;
public TextField

pcd,ai,ood,aca,el1,el2,oodlab,iplab,elab6,re4;
public TextField ecfa,cg,mpc,dsp,ela,elb,cglab,osslab,re5;
public TextField el5,el6,prj,re6;//cse
public TextField

ma31,me32,me33,me34,me35,me36,me37,me38,me39,hs3lab,re7;
public TextField ma42,me41,me43,me44,me45,me46,me47,me48,me49,hs4lab,re8;
public TextField me51,me52,me53,me54,me55,me56,me57,me58,me59,hs5lab,ge32,re9;
public TextField me61,me62,me63,me64,me65,me66,me67,mg61,hs6lab,ele1,re10;
public TextField ge71,me71,me72,me73,ele2,ele3,me76,me77,re11;
public TextField mg81,me82,me83,ele4,ele5,re12;
public TextField s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,ss1,ss2,ss3,ss4,ss5,ss6,ss7,ss8,ss9,ss10,fin;
float gpa,gpa1;
int a = 0,b = 0,c = 0,d = 0,e = 0,f = 0,g = 0,h = 0,i = 0,j =0,k=0;
int x1 = 0,x2 = 0,x3 = 0,x4 = 0,x5 = 0,x6 = 0,x7 = 0,x8 = 0,x9 =0,x10 = 0;

public void findGpa(String s1,String s2,String s3,String

s4,String s5,String s6,String s7,String s8,String s9,String

s10,String s11)
{
if(("s".equals(s1)) ||("S".equals(s1)) )

a=10;
else
if(("a".equals(s1)) ||("A".equals(s1)) )
a=9;
else
if(("b".equals(s1)) ||("B".equals(s1)) )
a=8;
else
if(("c".equals(s1)) ||("C".equals(s1)) )
a=7;
else
if(("d".equals(s1)) ||("D".equals(s1)) )
a=6;
else
if(("e".equals(s1)) ||("E".equals(s1)) )
a=5;
else
a=0;
if(("s".equals(s2)) ||("S".equals(s2)) )

b=10;
else
if(("a".equals(s2)) ||("A".equals(s2)) )
b=9;
else
if(("b".equals(s2)) ||("B".equals(s2)) )
b=8;
else
if(("c".equals(s2)) ||("C".equals(s2)) )
b=7;
else
if(("d".equals(s2)) ||("D".equals(s2)) )
b=6;
else
if(("e".equals(s2)) ||("E".equals(s2)) )
b=5;
else
b=0;
if(("s".equals(s3)) ||("S".equals(s3)) )

c=10;
else
if(("a".equals(s3)) ||("A".equals(s3)) )
c=9;
else
if(("b".equals(s3)) ||("B".equals(s3)) )
c=8;
else
if(("c".equals(s3)) ||("C".equals(s3)) )
c=7;
else
if(("d".equals(s3)) ||("D".equals(s3)) )
c=6;
else
if(("e".equals(s3)) ||("E".equals(s3)) )
c=5;
else
c=0;
if(("s".equals(s4)) ||("S".equals(s4)) )

d=10;
else
if(("a".equals(s4)) ||("A".equals(s4)) )
d=9;
else
if(("b".equals(s4)) ||("B".equals(s4)) )
d=8;
else
if(("c".equals(s4)) ||("C".equals(s4)) )
d=7;
else
if(("d".equals(s4)) ||("D".equals(s4)) )
d=6;
else
if(("e".equals(s4)) ||("E".equals(s4)) )
d=5;
else
d=0;
if(("s".equals(s5)) ||("S".equals(s5)) )

e=10;
else
if(("a".equals(s5)) ||("A".equals(s5)) )
e=9;
else
if(("b".equals(s5)) ||("B".equals(s5)) )
e=8;
else
if(("c".equals(s5)) ||("C".equals(s5)) )
e=7;
else
if(("d".equals(s5)) ||("D".equals(s5)) )
e=6;
else
if(("e".equals(s5)) ||("E".equals(s5)) )
e=5;
else
e=0;
if(("s".equals(s6)) ||("S".equals(s6)) )

f=10;
else
if(("a".equals(s6)) ||("A".equals(s6)) )
f=9;
else
if(("b".equals(s6)) ||("B".equals(s6)) )
f=8;
else
if(("c".equals(s6)) ||("C".equals(s6)) )
f=7;
else
if(("d".equals(s6)) ||("D".equals(s6)) )
f=6;
else
if(("e".equals(s6)) ||("E".equals(s6)) )
f=5;
else
f=0;
if(("s".equals(s7)) ||("S".equals(s7)) )

g=10;
else
if(("a".equals(s7)) ||("A".equals(s7)) )
g=9;
else
if(("b".equals(s7)) ||("B".equals(s7)) )
g=8;
else
if(("c".equals(s7)) ||("C".equals(s7)) )
g=7;
else
if(("d".equals(s7)) ||("D".equals(s7)) )
g=6;
else
if(("e".equals(s7)) ||("E".equals(s7)) )
g=5;
else
g=0;
if(("s".equals(s8)) ||("S".equals(s8)) )

h=10;
else
if(("a".equals(s8)) ||("A".equals(s8)) )
h=9;
else
if(("b".equals(s8)) ||("B".equals(s8)) )
h=8;
else
if(("c".equals(s8)) ||("C".equals(s8)) )
h=7;
else
if(("d".equals(s8)) ||("D".equals(s8)) )
h=6;
else
if(("e".equals(s8)) ||("E".equals(s8)) )
h=5;
else
h=0;
if(("s".equals(s9)) ||("S".equals(s9)) )

i=10;
else
if(("a".equals(s9)) ||("A".equals(s9)) )
i=9;
else
if(("b".equals(s9)) ||("B".equals(s9)) )
i=8;
else
if(("c".equals(s9)) ||("C".equals(s9)) )
i=7;
else
if(("d".equals(s9)) ||("D".equals(s9)) )
i=6;
else
if(("e".equals(s9)) ||("E".equals(s9)) )
i=5;
else
i=0;
if(("s".equals(s10)) ||("S".equals(s10)) )

j=10;
else
if(("a".equals(s10)) ||("A".equals(s10)) )
j=9;
else
if(("b".equals(s10)) ||("B".equals(s10)) )
j=8;
else
if(("c".equals(s10)) ||("C".equals(s10)) )
j=7;
else
if(("d".equals(s10)) ||("D".equals(s10)) )
j=6;
else
if(("e".equals(s10)) ||("E".equals(s10)) )
j=5;
else
j=0;
if(("s".equals(s11)) ||("S".equals(s11)) )

k=10;
else
if(("a".equals(s11)) ||("A".equals(s11)) )
k=9;
else
if(("b".equals(s11)) ||("B".equals(s11)) )
k=8;
else
if(("c".equals(s11)) ||("C".equals(s11)) )
k=7;
else
if(("d".equals(s11)) ||("D".equals(s11)) )
k=6;
else
if(("e".equals(s11)) ||("E".equals(s11)) )
k=5;
else
k=0;

}

private List ChooseDept;
private List ChooseSem;
private List list2;
private Form EnterYourGrade;
private Form YourGpa;
private Form form;
private Form form2;
private Form form3;
private Form form5;
private Form form6;
private Form form1;
private Form form4;
private Form form9;
private Form form7;
private Form form8;
private Form form12;
private Form form11;
private Form form10;
private Form form15;
private Form form14;
private Form form13;
private Form form18;
private Form form17;
private Form form16;
private Form form21;
private Form form20;
private Form form19;
private Form form24;
private Form form26;
private Form form25;
private Form form22;
private Form form23;
private Command backCommand;
private Command backCommand1;
private Command backCommand2;
private Command backCommand3;
private Command okCommand;
private Command itemCommand;
private Command backCommand5;
private Command okCommand1;
private Command backCommand4;
private Command backCommand7;
private Command okCommand2;
private Command backCommand6;
private Command exitCommand;
private Command backCommand8;
private Command okCommand3;
private Command okCommand4;
private Command backCommand9;
private SimpleCancellableTask task;
private Ticker ticker;
private Image image1;
private Image image2;
private Image image5;
private Image image3;
private Image image4;
private Image image6;
private Image image7;
private Ticker ticker1;
private Ticker ticker2;

public GpaCalcc() {
}


private void initialize () {



}

public void startMIDlet () {

switchDisplayable (null, getChooseDept ());



}



public void resumeMIDlet () {



}


public void switchDisplayable (Alert alert, Displayable

nextDisplayable) {

Display display = getDisplay ();


if (alert == null) {
display.setCurrent (nextDisplayable);
} else {
display.setCurrent (alert, nextDisplayable);
}

}

public void commandAction (Command command, Displayable

displayable) {

if (displayable == ChooseDept) {


if (command == List.SELECT_COMMAND) {



ChooseDeptAction ();

} else if (command == exitCommand) {



exitMIDlet ();

}
} else if (displayable == ChooseSem) {
if (command == List.SELECT_COMMAND) {



ChooseSemAction ();

} else if (command == backCommand) {



switchDisplayable (null, getChooseDept ());



}
} else if (displayable == EnterYourGrade) {
if (command == backCommand) {



switchDisplayable (null, getChooseSem ());



} else if (command == okCommand)
{
findGpa(ma.getString(),dpsd.getString(),adc.getString

(),ds.getString(),oop.getString(),evs.getString(),dlab.getString

(),olab.getString(),dslab.getString(),elab.getString(),"");
switchDisplayable (null, getYourGpa ());



gpa1=(4*a+4*b+4*c+3*d+3*e+3*f+2*g+2*h+2*i+2*j);
gpa=gpa1/29;
re.setString(""+gpa);
}
} else if (displayable == YourGpa) {
if (command == backCommand) {



switchDisplayable (null, getEnterYourGrade ());



}
} else if (displayable == form) {
if (command == backCommand) {



switchDisplayable (null, getChooseSem ());



} else if (command == okCommand) {


findGpa(ma5.getString(),toc.getString(),ss.getString

(),cn.getString(),se.getString(),pp.getString(),nlab.getString

(),sslab.getString(),jlab.getString(),elab5.getString(),"");
switchDisplayable (null, getForm1 ());


gpa1=(4*a+4*b+4*c+3*d+3*e+3*f+2*g+2*h+2*i+2*j);
gpa=gpa1/29;
re2.setString(""+gpa);
}
} else if (displayable == form1) {
if (command == backCommand) {



switchDisplayable (null, getForm ());



}
} else if (displayable == form10) {
if (command == backCommand) {



switchDisplayable (null, getList2 ());



} else if (command == okCommand) {


findGpa(ma31.getString(),me33.getString(),me34.getString

(),me35.getString(),me32.getString(),me36.getString

(),me37.getString(),me38.getString(),me39.getString

(),hs3lab.getString(),"");
switchDisplayable (null, getForm11 ());


gpa1=(4*a+4*b+4*c+4*d+3*e+3*f+2*g+2*h+2*i+2*j);
gpa=gpa1/30;
re7.setString(""+gpa);
}
} else if (displayable == form11) {
if (command == backCommand) {



switchDisplayable (null, getForm10 ());



}
} else if (displayable == form12) {
if (command == backCommand) {



switchDisplayable (null, getList2 ());



} else if (command == okCommand) {


findGpa(ma42.getString(),me41.getString(),me45.getString

(),me43.getString(),me44.getString(),me46.getString

(),me47.getString(),me48.getString(),me49.getString

(),hs4lab.getString(),"");
switchDisplayable (null, getForm13 ());



gpa1=(4*a+4*b+4*c+3*d+3*e+3*f+2*g+2*h+2*i+2*j);
gpa=gpa1/29;
re8.setString(""+gpa);
form13.append("ALL THE BEST");
}
} else if (displayable == form13) {
if (command == backCommand) {



switchDisplayable (null, getForm12 ());



}
} else if (displayable == form14) {
if (command == backCommand4) {



switchDisplayable (null, getList2 ());



} else if (command == okCommand1) {


findGpa(me51.getString(),me52.getString(),me53.getString

(),ge32.getString(),me54.getString(),me55.getString

(),me57.getString(),me58.getString(),me59.getString

(),hs5lab.getString(),me56.getString());
switchDisplayable (null, getForm15 ());



gpa=(4*a+4*b+4*c+3*d+3*e+3*f+2*g+2*h+2*i+2*j+2*k);
gpa1=gpa/31;
re9.setString(""+gpa1);
form15.append("ALL THE BEST");
}
} else if (displayable == form15) {
if (command == backCommand5) {



switchDisplayable (null, getForm14 ());



}
} else if (displayable == form16) {
if (command == backCommand6) {



switchDisplayable (null, getList2 ());



} else if (command == okCommand2) {


findGpa(me61.getString(),me63.getString(),me64.getString

(),me62.getString(),mg61.getString(),ele1.getString

(),me66.getString(),me67.getString(),hs6lab.getString(),"","");
switchDisplayable (null, getForm17 ());



gpa=(4*a+4*b+4*c+3*d+3*e+3*f+2*g+2*h+2*i);
gpa1=gpa/27;
re10.setString(""+gpa1);
form17.append("ALL THE BEST");
}
} else if (displayable == form17) {
if (command == backCommand7) {



switchDisplayable (null, getForm16 ());



}
} else if (displayable == form18) {
if (command == backCommand) {



switchDisplayable (null, getList2 ());



} else if (command == okCommand3) {



findGpa(me71.getString(),me73.getString(),ge71.getString

(),me72.getString(),ele2.getString(),ele3.getString

(),me76.getString(),me77.getString(),"","","");
switchDisplayable (null, getForm19 ());


gpa=(3*a+3*b+3*c+3*d+3*e+3*f+2*g+2*h);
gpa1=gpa/22;
re11.setString(""+gpa1);
}
} else if (displayable == form19) {
if (command == backCommand8) {



switchDisplayable (null, getForm18 ());



}
} else if (displayable == form2) {
if (command == backCommand) {



switchDisplayable (null, getChooseSem ());



} else if (command == okCommand) {


findGpa(ma4.getString(),coa.getString(),daa.getString

(),os.getString(),dbms.getString(),mm.getString(),dblab.getString

(),oslab.getString(),mlab.getString(),elab4.getString(),"");
switchDisplayable (null, getForm3 ());



gpa1=(4*a+4*b+4*c+3*d+3*e+3*f+2*g+2*h+2*i+2*j);
gpa=gpa1/29;
re1.setString(""+gpa);
}
} else if (displayable == form20) {
if (command == backCommand) {



switchDisplayable (null, getList2 ());



} else if (command == okCommand) {


findGpa(mg81.getString(),ele4.getString(),ele5.getString

(),me82.getString(),me83.getString(),"","","","","","");
switchDisplayable (null, getForm21 ());



gpa=(3*a+3*b+3*c+2*d+6*e);
gpa1=gpa/17;
re12.setString(""+gpa1);
}
} else if (displayable == form21) {
if (command == backCommand9) {



switchDisplayable (null, getForm20 ());



}
} else if (displayable == form22) {
if (command == backCommand) {



switchDisplayable (null, getChooseDept ());



} else if (command == okCommand4) {



switchDisplayable (null, getForm23 ());



}
} else if (displayable == form23) {
if (command == backCommand) {



switchDisplayable (null, getForm22 ());



} else if (command == okCommand) {



switchDisplayable (null, getForm24 ());


findGpa(ss1.getString(),ss2.getString(),ss3.getString

(),ss4.getString(),ss5.getString(),ss6.getString(),ss7.getString

(),ss8.getString(),ss9.getString(),ss10.getString(),"");
String a1=s1.getString();
if( "".equals(a1))
{
x1=0;
} else{
x1=Integer.parseInt(a1);
}
String a2=s2.getString();
if("".equals(a2))
{
x2=0;
} else{
x2=Integer.parseInt(a2);
}

String a3=s3.getString();
if("".equals(a3))
{
x3=0;
} else{
x3=Integer.parseInt(a3);
}
String a4=s4.getString();
if("".equals(a4))
{
x4=0;
} else{
x4=Integer.parseInt(a4);
}
String a5=s5.getString();
if("".equals(a5))
{
x5=0;
} else{
x5=Integer.parseInt(a5);
}
String a6=s6.getString();
if("".equals(a6))
{
x6=0;
} else{
x6=Integer.parseInt(a6);
}
String a7=s7.getString();
if("".equals(a7))
{
x7=0;
} else{
x7=Integer.parseInt(a7);
}
String a8=s8.getString();
if("".equals(a8))
{
x8=0;
} else{
x8=Integer.parseInt(a8);
}
String a9=s9.getString();
if("".equals(a9))
{
x9=0;
} else{
x9=Integer.parseInt(a9);
}
String a10=s10.getString();
if("".equals(a10))
{
x10=0;
} else{
x10=Integer.parseInt(a10);
}
int x=x1+x2+x3+x4+x5+x6+x7+x8+x9+x10;
gpa1=(x1*a+x2*b+x3*c+x4*d+x5*e+x6*f+x7*g+x8*h+x9*i+x10*j);
gpa=gpa1/x;
fin.setString(""+gpa);
}
} else if (displayable == form24) {
if (command == backCommand) {



switchDisplayable (null, getForm23 ());



}
} else if (displayable == form25) {
if (command == backCommand) {



switchDisplayable (null, getChooseDept ());



}
} else if (displayable == form26) {
if (command == backCommand) {



switchDisplayable (null, getChooseDept ());



}
} else if (displayable == form3) {
if (command == backCommand) {



switchDisplayable (null, getForm2 ());



}
} else if (displayable == form4) {
if (command == backCommand) {



switchDisplayable (null, getChooseSem ());



} else if (command == okCommand) {


findGpa(pcd.getString(),ai.getString(),ood.getString

(),aca.getString(),el1.getString(),el2.getString

(),oodlab.getString(),iplab.getString(),elab6.getString(),"","");
switchDisplayable (null, getForm5 ());



gpa1=(4*a+3*b+3*c+3*d+3*e+3*f+2*g+2*h+2*i);
gpa=gpa1/25;
re4.setString(""+gpa);
}
} else if (displayable == form5) {
if (command == backCommand) {



switchDisplayable (null, getForm4 ());



}
} else if (displayable == form6) {
if (command == backCommand) {



switchDisplayable (null, getChooseSem ());



} else if (command == okCommand) {


findGpa(ecfa.getString(),cg.getString(),mpc.getString

(),dsp.getString(),ela.getString(),elb.getString

(),cglab.getString(),osslab.getString(),"","","");
switchDisplayable (null, getForm7 ());


gpa1=(3*a+3*b+3*c+3*d+3*e+3*f+2*g+2*h);
gpa=gpa1/22;
re5.setString(""+gpa);
}
} else if (displayable == form7) {
if (command == backCommand) {



switchDisplayable (null, getForm6 ());



}
} else if (displayable == form8) {
if (command == backCommand) {



switchDisplayable (null, getChooseSem ());



} else if (command == okCommand) {


findGpa(el5.getString(),el6.getString(),prj.getString

(),"","","","","","","","");
switchDisplayable (null, getForm9 ());



gpa1=(3*a+3*b+6*c);
gpa=gpa1/12;
re6.setString(""+gpa);
}
} else if (displayable == form9) {
if (command == backCommand) {



switchDisplayable (null, getForm8 ());



}
} else if (displayable == list2) {
if (command == List.SELECT_COMMAND) {



list2Action ();

} else if (command == backCommand1) {



switchDisplayable (null, getChooseDept ());



}
}

}







public List getChooseDept () {
if (ChooseDept == null) {

ChooseDept = new List ("Choose your Department", Choice.IMPLICIT);


ChooseDept.append ("CSE", getImage1 ());
ChooseDept.append ("MECH", getImage2 ());
ChooseDept.append ("OTHERS", getImage3 ());
ChooseDept.append ("HELP", getImage4 ());
ChooseDept.append ("ABOUT", getImage5 ());
ChooseDept.addCommand (getExitCommand ());
ChooseDept.setCommandListener (this);
ChooseDept.setSelectedFlags (new boolean[] { false, false, false,

false, false });

}
return ChooseDept;
}

public void ChooseDeptAction () {



String __selectedString = getChooseDept ().getString

(getChooseDept ().getSelectedIndex ());


if (__selectedString != null) {
if (__selectedString.equals ("CSE")) {



switchDisplayable (null, getChooseSem ());



} else if (__selectedString.equals ("MECH")) {



switchDisplayable (null, getList2 ());



} else if (__selectedString.equals ("OTHERS")) {



switchDisplayable (null, getForm22 ());



} else if (__selectedString.equals ("HELP")) {



switchDisplayable (null, getForm25 ());



} else if (__selectedString.equals ("ABOUT")) {



switchDisplayable (null, getForm26 ());



}
}

}



public List getChooseSem () {
if (ChooseSem == null) {

ChooseSem = new List ("Choose Your Semester", Choice.IMPLICIT);


ChooseSem.append ("3RD SEM", getImage6 ());
ChooseSem.append ("4TH SEM", getImage6 ());
ChooseSem.append ("5TH SEM", getImage6 ());
ChooseSem.append ("6TH SEM", getImage6 ());
ChooseSem.append ("7TH SEM", getImage6 ());
ChooseSem.append ("8TH SEM", getImage6 ());
ChooseSem.addCommand (getBackCommand ());
ChooseSem.setCommandListener (this);
ChooseSem.setSelectedFlags (new boolean[] { false, false, false,

false, false, false });

}
return ChooseSem;
}

public void ChooseSemAction () {

String __selectedString = getChooseSem ().getString (getChooseSem

().getSelectedIndex ());
if (__selectedString != null) {
if (__selectedString.equals ("3RD SEM")) {



switchDisplayable (null, getEnterYourGrade ());



} else if (__selectedString.equals ("4TH SEM")) {



switchDisplayable (null, getForm2 ());



} else if (__selectedString.equals ("5TH SEM")) {



switchDisplayable (null, getForm ());



} else if (__selectedString.equals ("6TH SEM")) {



switchDisplayable (null, getForm4 ());



} else if (__selectedString.equals ("7TH SEM")) {



switchDisplayable (null, getForm6 ());



} else if (__selectedString.equals ("8TH SEM")) {



switchDisplayable (null, getForm8 ());



}
}

}


public SimpleCancellableTask getTask () {
if (task == null) {

task = new SimpleCancellableTask ();


task.setExecutable (new org.netbeans.microedition.util.Executable

() {
public void execute () throws Exception {



}
});

}
return task;
}

public Command getBackCommand () {
if (backCommand == null) {

backCommand = new Command ("Back", Command.BACK, 0);



}
return backCommand;
}

public List getList2 () {
if (list2 == null) {

list2 = new List ("CHOOSE SEMESTER", Choice.IMPLICIT);


list2.append ("3rd SEM", getImage7 ());
list2.append ("4th SEM", getImage7 ());
list2.append ("5th SEM", getImage7 ());
list2.append ("6th SEM", getImage7 ());
list2.append ("7th SEM", getImage7 ());
list2.append ("8th SEM", getImage7 ());
list2.addCommand (getBackCommand1 ());
list2.setCommandListener (this);
list2.setSelectedFlags (new boolean[] { false, false, false,

false, false, false });

}
return list2;
}

public void list2Action () {

String __selectedString = getList2 ().getString (getList2

().getSelectedIndex ());
if (__selectedString != null) {
if (__selectedString.equals ("3rd SEM")) {



switchDisplayable (null, getForm10 ());



} else if (__selectedString.equals ("4th SEM")) {



switchDisplayable (null, getForm12 ());



} else if (__selectedString.equals ("5th SEM")) {



switchDisplayable (null, getForm14 ());



} else if (__selectedString.equals ("6th SEM")) {



switchDisplayable (null, getForm16 ());



} else if (__selectedString.equals ("7th SEM")) {



switchDisplayable (null, getForm18 ());



} else if (__selectedString.equals ("8th SEM")) {



switchDisplayable (null, getForm20 ());



}
}

}

public Command getBackCommand1 () {
if (backCommand1 == null) {

backCommand1 = new Command ("Back", Command.BACK, 0);



}
return backCommand1;
}

public Command getBackCommand2 () {
if (backCommand2 == null) {

backCommand2 = new Command ("Back", Command.BACK, 0);



}
return backCommand2;
}

public Command getBackCommand3 () {
if (backCommand3 == null) {

backCommand3 = new Command ("Back", Command.BACK, 0);



}
return backCommand3;
}

public Ticker getTicker () {
if (ticker == null) {

ticker = new Ticker ("www.facebook.com/thaveethu.gce");



}
return ticker;
}

public Form getEnterYourGrade () {
if (EnterYourGrade == null) {

EnterYourGrade = new Form ("Enter Your Grade", new Item[] { });


EnterYourGrade.addCommand (getBackCommand ());
EnterYourGrade.addCommand (getOkCommand ());
EnterYourGrade.setCommandListener (this);


ma=new TextField("MATHS3","",20,TextField.ANY);
dpsd=new TextField("DPSD","",20,TextField.ANY);
ds=new TextField("DS","",20,TextField.ANY);
adc=new TextField("ADC","",20,TextField.ANY);
evs=new TextField("EVS","",20,TextField.ANY);
oop=new TextField("OOP","",20,TextField.ANY);
dlab=new TextField("DIGITAL LAB","",20,TextField.ANY);
dslab=new TextField("DS LAB","",20,TextField.ANY);
olab=new TextField("OOP LAB","",20,TextField.ANY);
elab=new TextField("ENG LAB","",20,TextField.ANY);
EnterYourGrade.append(ma);
EnterYourGrade.append(dpsd);
EnterYourGrade.append(ds);
EnterYourGrade.append(adc);
EnterYourGrade.append(evs);
EnterYourGrade.append(oop);
EnterYourGrade.append(dlab);
EnterYourGrade.append(dslab);
EnterYourGrade.append(olab);
EnterYourGrade.append(elab);

}
return EnterYourGrade;
}



public Form getYourGpa () {
if (YourGpa == null) {

YourGpa = new Form ("Your GPA");


YourGpa.addCommand (getBackCommand ());
YourGpa.setCommandListener (this);


re=new TextField("YOUR GPA IS","",10,TextField.ANY);
int append = YourGpa.append(re);
}
return YourGpa;
}

public Command getItemCommand () {
if (itemCommand == null) {

itemCommand = new Command ("Item", Command.ITEM, 0);



}
return itemCommand;
}

public Command getOkCommand () {
if (okCommand == null) {

okCommand = new Command ("Ok", Command.OK, 0);



}
return okCommand;
}

public Form getForm2 () {
if (form2 == null) {

form2 = new Form ("Enter Your Grade");


form2.addCommand (getBackCommand ());
form2.addCommand (getOkCommand ());
form2.setCommandListener (this);


ma4=new TextField("MATHS4","",20,TextField.ANY);
daa=new TextField("DAA","",20,TextField.ANY);
coa=new TextField("COA","",20,TextField.ANY);
os=new TextField("OS","",20,TextField.ANY);
dbms=new TextField("DBMS","",20,TextField.ANY);
mm=new TextField("MM","",20,TextField.ANY);
oslab=new TextField("OS LAB","",20,TextField.ANY);
dblab=new TextField("DBMS LAB","",20,TextField.ANY);
mlab=new TextField("MICRO PROCESSOR LAB","",20,TextField.ANY);
elab4=new TextField("ENG LAB4","",20,TextField.ANY);
form2.append(ma4);
form2.append(daa);
form2.append(coa);
form2.append(os);
form2.append(dbms);
form2.append(mm);
form2.append(oslab);
form2.append(dblab);
form2.append(mlab);
form2.append(elab4);
}
return form2;
}

public Form getForm3 () {
if (form3 == null) {

form3 = new Form ("Your GPA");


form3.addCommand (getBackCommand ());
form3.setCommandListener (this);


re1=new TextField("YOUR GPA ","",20,TextField.ANY);
int append = form3.append(re1);
}
return form3;
}

public Form getForm () {
if (form == null) {

form = new Form ("ENTER GRADE");


form.addCommand (getBackCommand ());
form.addCommand (getOkCommand ());
form.setCommandListener (this);
ma5=new TextField("MATHS5","",20,TextField.ANY);
toc=new TextField("TOC","",20,TextField.ANY);
ss=new TextField("SS","",20,TextField.ANY);
se=new TextField("SE","",20,TextField.ANY);
cn=new TextField("NETWORKS","",20,TextField.ANY);
pp=new TextField("PP","",20,TextField.ANY);
nlab=new TextField("NETWORK LAB","",20,TextField.ANY);
sslab=new TextField("SYSTEM SOFTWARE LAB","",20,TextField.ANY);
jlab=new TextField("JAVA LAB","",20,TextField.ANY);
elab5=new TextField("ENG LAB5","",20,TextField.ANY);
form.append(ma5);
form.append(toc);
form.append(ss);
form.append(se);
form.append(cn);
form.append(pp);
form.append(nlab);
form.append(sslab);
form.append(jlab);
form.append(elab5);
}
return form;
}

public Form getForm1 () {
if (form1 == null) {

form1 = new Form ("YOUR GPA");


form1.addCommand (getBackCommand ());
form1.setCommandListener (this);


re2=new TextField("YOUR GPA IS","",20,TextField.ANY);
int append = form1.append(re2);
}
return form1;
}

public Form getForm4 () {
if (form4 == null) {

form4 = new Form ("ENTER GRADE");


form4.addCommand (getBackCommand ());
form4.addCommand (getOkCommand ());
form4.setCommandListener (this);


pcd=new TextField("Principles of Compiler

Design","",20,TextField.ANY);
ai=new TextField("Artificial Intelligence","",20,TextField.ANY);
ood=new TextField("Object Oriented Analysis and

Design","",20,TextField.ANY);
aca=new TextField("Advanced Computer

Architecture","",20,TextField.ANY);
el1=new TextField("Elective 1","",20,TextField.ANY);
el2=new TextField("Elective 2","",20,TextField.ANY);
oodlab=new TextField("OOD LAB","",20,TextField.ANY);
iplab=new TextField("IP LAB","",20,TextField.ANY);
elab6=new TextField("ENG LAB6","",20,TextField.ANY);
form4.append(pcd);
form4.append(ai);
form4.append(ood);
form4.append(aca);
form4.append(el1);
form4.append(el2);
form4.append(oodlab);
form4.append(iplab);
form4.append(elab6);
}
return form4;
}

public Form getForm5 () {
if (form5 == null) {

form5 = new Form ("form5");
form5.addCommand (getBackCommand ());
form5.setCommandListener (this);


re4=new TextField("YOUR GPA IS","",20,TextField.ANY);
int append = form5.append(re4);
}
return form5;
}

public Form getForm6 () {
if (form6 == null) {

form6 = new Form ("ENTER GRADE");


form6.addCommand (getBackCommand ());
form6.addCommand (getOkCommand ());
form6.setCommandListener (this);


ecfa=new TextField("Engineering Economics & Financial

Accounting","",20,TextField.ANY);
cg=new TextField("Computer Graphics","",20,TextField.ANY);
mpc=new TextField("Mobile and Pervasive

Computing","",20,TextField.ANY);
dsp=new TextField("Digital Signal

Processing","",20,TextField.ANY);
ela=new TextField("Elective III","",20,TextField.ANY);
elb=new TextField("Elective IV","",20,TextField.ANY);
cglab=new TextField("CG LAB","",20,TextField.ANY);
osslab=new TextField("OPEN SOURCE LAB","",20,TextField.ANY);
form6.append(ecfa);
form6.append(cg);
form6.append(mpc);
form6.append(dsp);
form6.append(ela);
form6.append(elb);
form6.append(cglab);
form6.append(osslab);
}
return form6;
}



public Form getForm7 () {
if (form7 == null) {

form7 = new Form ("YOUR GPA");


form7.addCommand (getBackCommand ());
form7.setCommandListener (this);


re5=new TextField("YOUR GPA IS","",20,TextField.ANY);
int append = form7.append(re5);
}
return form7;
}

public Form getForm8 () {
if (form8 == null) {

form8 = new Form ("ENTER GRADE");


form8.addCommand (getBackCommand ());
form8.addCommand (getOkCommand ());
form8.setCommandListener (this);


el5=new TextField("Elective V","",20,TextField.ANY);
el6=new TextField("Elective VI","",20,TextField.ANY);
prj=new TextField("PROJECT WORK","",20,TextField.ANY);
form8.append(el5);
form8.append(el6);
form8.append(prj);
}
return form8;
}

public Form getForm9 () {
if (form9 == null) {

form9 = new Form ("YOUR GPA");


form9.addCommand (getBackCommand ());
form9.setCommandListener (this);


re6=new TextField("YOUR GPA IS","",20,TextField.ANY);
int append = form9.append(re6);
}
return form9;
}

public Form getForm10 () {
if (form10 == null) {

form10 = new Form ("ENTER GRADE");


form10.addCommand (getBackCommand ());
form10.addCommand (getOkCommand ());
form10.setCommandListener (this);


ma31=new TextField("MATHS3","",20,TextField.ANY);
me32=new TextField("Manufacturing Technology –

I","",20,TextField.ANY);
me33=new TextField("Engineering

Thermodynamics","",20,TextField.ANY);
me34=new TextField("Fluid Mechanics and

Machinery","",20,TextField.ANY);
me35=new TextField("Kinematics of

Machinery","",20,TextField.ANY);
me36=new TextField("Electrical Drives and

Control","",20,TextField.ANY);
me37=new TextField("Manufacturing Technology Lab –

I","",20,TextField.ANY);
me38=new TextField("Fluid Mechanics and Machinery

Laboratory","",20,TextField.ANY);
me39=new TextField("Electrical Engineering

Laboratory","",20,TextField.ANY);
hs3lab=new TextField("ENG LAB I","",20,TextField.ANY);
form10.append(ma31);
form10.append(me32);
form10.append(me33);
form10.append(me34);
form10.append(me35);
form10.append(me36);
form10.append(me37);
form10.append(me38);
form10.append(me39);
form10.append(hs3lab);
}
return form10;
}

public Form getForm11 () {
if (form11 == null) {

form11 = new Form ("YOUR GPA");


form11.addCommand (getBackCommand ());
form11.setCommandListener (this);


re7=new TextField("YOUR GPA IS","",20,TextField.ANY);
int append = form11.append(re7);
}
return form11;
}

public Form getForm12 () {
if (form12 == null) {

form12 = new Form ("ENTER GRADE");


form12.addCommand (getBackCommand ());
form12.addCommand (getOkCommand ());
form12.setCommandListener (this);


ma42=new TextField("MATHS4","",20,TextField.ANY);
me41=new TextField("Heat and Mass Transfer","",20,TextField.ANY);
me43=new TextField("Manufacturing Technology –

II","",20,TextField.ANY);
me44=new TextField("Engineering Materials &

Metallurgy","",20,TextField.ANY);
me45=new TextField("Strength of Materials","",10,TextField.ANY);
me46=new TextField("Electronics and

Microprocessor","",20,TextField.ANY);
me47=new TextField("Strength of Materials

Lab","",20,TextField.ANY);
me48=new TextField("Computer Aided Machine Drawing

Laboratory","",20,TextField.ANY);
me49=new TextField("Manufacturing Technology Lab –

II","",20,TextField.ANY);
hs4lab=new TextField("ENG LAB II","",20,TextField.ANY);
form12.append(ma42);
form12.append(me41);
form12.append(me43);
form12.append(me44);
form12.append(me45);
form12.append(me46);
form12.append(me47);
form12.append(me48);
form12.append(me49);
form12.append(hs4lab);
}
return form12;
}

public Form getForm13 () {
if (form13 == null) {

form13 = new Form ("YOUR GPA");


form13.addCommand (getBackCommand ());
form13.setCommandListener (this);


re8=new TextField("YOUR GPA IS","",20,TextField.ANY);
int append = form13.append(re8);
}
return form13;
}



public Form getForm14 () {
if (form14 == null) {

form14 = new Form ("ENTER GRADE");


form14.addCommand (getBackCommand4 ());
form14.addCommand (getOkCommand1 ());
form14.setCommandListener (this);


ge32=new TextField("Environmental Science","",20,TextField.ANY);
me51=new TextField("Thermal Engineering","",20,TextField.ANY);
me52=new TextField("Dynamics of Machinery","",20,TextField.ANY);
me53=new TextField("Design of Machine

Elements","",20,TextField.ANY);
me54=new TextField("Engineering Metrology &

Measurements","",20,TextField.ANY);
me55=new TextField("Applied Hydraulics &

Pneumatics","",20,TextField.ANY);
me56=new TextField("Thermal Engineering Lab –

I","",20,TextField.ANY);
me57=new TextField("Dynamics Lab","",20,TextField.ANY);
me58=new TextField("Metrology & Measurements

Lab","",20,TextField.ANY);
me59=new TextField("CAD / CAM Lab","",20,TextField.ANY);
hs5lab=new TextField("ENG LAB","",20,TextField.ANY);
form14.append(ge32);
form14.append(me51);
form14.append(me52);
form14.append(me53);
form14.append(me54);
form14.append(me55);
form14.append(me56);
form14.append(me57);
form14.append(me58);
form14.append(me59);
form14.append(hs5lab);
}
return form14;
}

public Command getBackCommand4 () {
if (backCommand4 == null) {

backCommand4 = new Command ("Back", Command.BACK, 0);



}
return backCommand4;
}

public Form getForm15 () {
if (form15 == null) {

form15 = new Form ("YOUR GPA");


form15.addCommand (getBackCommand5 ());
form15.setCommandListener (this);


re9=new TextField("YOUR GPA IS","",20,TextField.ANY);
int append = form15.append(re9);
}
return form15;
}

public Command getOkCommand1 () {
if (okCommand1 == null) {

okCommand1 = new Command ("Ok", Command.OK, 0);



}
return okCommand1;
}

public Command getBackCommand5 () {
if (backCommand5 == null) {

backCommand5 = new Command ("Back", Command.BACK, 0);



}
return backCommand5;
}

public Command getExitCommand () {
if (exitCommand == null) {

exitCommand = new Command ("Exit", Command.EXIT, 0);



}
return exitCommand;
}

public Form getForm16 () {
if (form16 == null) {

form16 = new Form ("ENTER GRADE");


form16.addCommand (getBackCommand6 ());
form16.addCommand (getOkCommand2 ());
form16.setCommandListener (this);


mg61=new TextField("Principles of

Management","",20,TextField.ANY);
me61=new TextField("Design of Transmission

Systems","",20,TextField.ANY);
me62=new TextField("Automobile Engineering","",20,TextField.ANY);
me63=new TextField("Finite Element

Analysis","",20,TextField.ANY);
me64=new TextField("Gas Dynamics & Jet

Propulsion","",20,TextField.ANY);
ele1=new TextField("ELECTIVE I","",20,TextField.ANY);
me66=new TextField("Thermal Engineering Lab –

II","",20,TextField.ANY);
me67=new TextField("Design & Fabrication

Project","",20,TextField.ANY);
hs6lab=new TextField("ENG LAB","",20,TextField.ANY);
form16.append(mg61);
form16.append(me61);
form16.append(me62);
form16.append(me63);
form16.append(me64);
form16.append(ele1);
// form16.append(me65);
form16.append(me66);
form16.append(me67);
form16.append(hs6lab);
}
return form16;
}

public Command getBackCommand6 () {
if (backCommand6 == null) {

backCommand6 = new Command ("Back", Command.BACK, 0);



}
return backCommand6;
}

public Form getForm17 () {
if (form17 == null) {

form17 = new Form ("YOUR GPA");


form17.addCommand (getBackCommand7 ());
form17.setCommandListener (this);


re10=new TextField("YOUR GPA IS","",20,TextField.ANY);
int append = form17.append(re10);
}
return form17;
}

public Command getOkCommand2 () {
if (okCommand2 == null) {

okCommand2 = new Command ("Ok", Command.OK, 0);



}
return okCommand2;
}

public Command getBackCommand7 () {
if (backCommand7 == null) {

backCommand7 = new Command ("Back", Command.BACK, 0);



}
return backCommand7;
}

public Form getForm18 () {
if (form18 == null) {

form18 = new Form ("ENTER GRADE");


form18.addCommand (getBackCommand ());
form18.addCommand (getOkCommand3 ());
form18.setCommandListener (this);


ge71=new TextField("Total Quality

Management","",20,TextField.ANY);
me71=new TextField("Mechatronics","",20,TextField.ANY);
me72=new TextField("Computer Integrated

Manufacturing","",20,TextField.ANY);
me73=new TextField("Power Plant

Engineering","",20,TextField.ANY);
ele2=new TextField("Elective – II","",20,TextField.ANY);
ele3=new TextField("ELECTIVE- III","",20,TextField.ANY);
me76=new TextField("Computer Aided Simulation & Analysis

Lab","",20,TextField.ANY);
me77=new TextField("Mechatronics Lab","",20,TextField.ANY);
form18.append(ge71);
form18.append(me71);
form18.append(me72);
form18.append(me73);
form18.append(ele2);
form18.append(ele3);
form18.append(me76);
form18.append(me77);
}
return form18;
}

public Form getForm19 () {
if (form19 == null) {

form19 = new Form ("YOUR GPA");


form19.addCommand (getBackCommand8 ());
form19.setCommandListener (this);


re11=new TextField("YOUR GPA ","",20,TextField.ANY);
int append = form19.append(re11);
}
return form19;
}



public Command getOkCommand3 () {
if (okCommand3 == null) {

okCommand3 = new Command ("Ok", Command.OK, 0);



}
return okCommand3;
}

public Command getBackCommand8 () {
if (backCommand8 == null) {

backCommand8 = new Command ("Back", Command.BACK, 0);



}
return backCommand8;
}

public Form getForm20 () {
if (form20 == null) {

form20 = new Form ("ENTER GRADE");


form20.addCommand (getBackCommand ());
form20.addCommand (getOkCommand ());
form20.setCommandListener (this);


mg81=new TextField("Engineering Economics & Cost

Analysis","",20,TextField.ANY);
me82=new TextField("Comprehension","",20,TextField.ANY);
me83=new TextField("Project Work","",20,TextField.ANY);
ele4=new TextField("Elective –IV","",20,TextField.ANY);
ele5=new TextField("ELECTIVE- V","",20,TextField.ANY);
form20.append(mg81);
form20.append(ele4);
form20.append(ele5);
form20.append(me82);
form20.append(me83);
}
return form20;
}

public Form getForm21 () {
if (form21 == null) {

form21 = new Form ("YOUR GPA");


form21.addCommand (getBackCommand9 ());
form21.setCommandListener (this);


re12=new TextField("YOUR GPA ","",20,TextField.ANY);
int append = form21.append(re12);
}
return form21;
}



public Command getBackCommand9 () {
if (backCommand9 == null) {

backCommand9 = new Command ("Back", Command.BACK, 0);



}
return backCommand9;
}

public Form getForm22 () {
if (form22 == null) {

form22 = new Form ("ENTER CREDIT");


form22.setTicker (getTicker1 ());
form22.addCommand (getBackCommand ());
form22.addCommand (getOkCommand4 ());
form22.setCommandListener (this);


s1=new TextField("SUBJECT 1","",20,TextField.NUMERIC);
s2=new TextField("SUBJECT 2","",20,TextField.NUMERIC);
s3=new TextField("SUBJECT 3","",20,TextField.NUMERIC);
s4=new TextField("SUBJECT 4","",20,TextField.NUMERIC);
s5=new TextField("SUBJECT 5","",20,TextField.NUMERIC);
s6=new TextField("SUBJECT 6","",20,TextField.NUMERIC);
s7=new TextField("SUBJECT 7","",20,TextField.NUMERIC);
s8=new TextField("SUBJECT 8","",20,TextField.NUMERIC);
s9=new TextField("SUBJECT 9","",20,TextField.NUMERIC);
s10=new TextField("SUBJECT 10","",20,TextField.NUMERIC);
form22.append(s1);
form22.append(s2);
form22.append(s3);
form22.append(s4);
form22.append(s5);
form22.append(s6);
form22.append(s7);
form22.append(s8);
form22.append(s9);
form22.append(s10);
}
return form22;
}

public Image getImage1 () {
if (image1 == null) {

try {
image1 = Image.createImage ("/smiley_cool.png");
} catch (java.io.IOException e) {


e.printStackTrace ();
}

}
return image1;
}

public Image getImage2 () {
if (image2 == null) {

try {
image2 = Image.createImage ("/bomb.png");
} catch (java.io.IOException e) {


e.printStackTrace ();
}

}
return image2;
}



public Image getImage3 () {
if (image3 == null) {

try {
image3 = Image.createImage ("/heart_half.png");
} catch (java.io.IOException e) {


e.printStackTrace ();
}

}
return image3;
}



public Image getImage4 () {
if (image4 == null) {

try {
image4 = Image.createImage ("/help.png");
} catch (java.io.IOException e) {


e.printStackTrace ();
}

}
return image4;
}



public Image getImage5 () {
if (image5 == null) {

try {
image5 = Image.createImage ("/eye.png");
} catch (java.io.IOException e) {


e.printStackTrace ();
}

}
return image5;
}



public Form getForm23 () {
if (form23 == null) {

form23 = new Form ("ENTER GRADE");


form23.setTicker (getTicker2 ());
form23.addCommand (getBackCommand ());
form23.addCommand (getOkCommand ());
form23.setCommandListener (this);


ss1=new TextField("SUBJECT 1","",20,TextField.ANY);
ss2=new TextField("SUBJECT 2","",20,TextField.ANY);
ss3=new TextField("SUBJECT 3","",20,TextField.ANY);
ss4=new TextField("SUBJECT 4","",20,TextField.ANY);
ss5=new TextField("SUBJECT 5","",20,TextField.ANY);
ss6=new TextField("SUBJECT 6","",20,TextField.ANY);
ss7=new TextField("SUBJECT 7","",20,TextField.ANY);
ss8=new TextField("SUBJECT 8","",20,TextField.ANY);
ss9=new TextField("SUBJECT 9","",20,TextField.ANY);
ss10=new TextField("SUBJECT 10","",20,TextField.ANY);
form23.append(ss1);
form23.append(ss2);
form23.append(ss3);
form23.append(ss4);
form23.append(ss5);
form23.append(ss6);
form23.append(ss7);
form23.append(ss8);
form23.append(ss9);
form23.append(ss10);
}
return form23;
}

public Form getForm24 () {
if (form24 == null) {

form24 = new Form ("YOUR GPA");


form24.addCommand (getBackCommand ());
form24.setCommandListener (this);


fin=new TextField("YOUR GPA","",20,TextField.ANY);
form24.append(fin);
}
return form24;

public Command getOkCommand4 () {
if (okCommand4 == null) {

okCommand4 = new Command ("Ok", Command.OK, 0);



}
return okCommand4;
}

public Form getForm25 () {
if (form25 == null) {

form25 = new Form ("HELP");
form25.addCommand (getBackCommand ());
form25.setCommandListener (this);


form25.append("1.CHOOSE YOUR DEPARTMENT \n 2. CHOOSE YOUR

SEMESTER \n 3.ENTER GRADE \n 4.PRESS \"Ok\" \n_________________\n

FOR OTHERS\nTHIS OPTION IS SPECIALLY FOR OTHER DEPARTMENT AND

OTHER UNIVERSITY STUDENTS\n 1.FIRST YOU NEED TO ENTER SUBJECT

\"CREDITS\" \n 2.THEN ENTER GRADES\n 3.PRESS \"OK\"");
}
return form25;
}

public Form getForm26 () {
if (form26 == null) {

form26 = new Form ("ABOUT ME");


form26.setTicker (getTicker ());
form26.addCommand (getBackCommand ());
form26.setCommandListener (this);


form26.append("DEVELOPED BY THAVEETHU\n COMPUTER SCIENCE AND

ENGINEERING STUDENT OF GOVERNMENT COLLEGE OF ENGINEERING

TIRUNELVELI \n CONTACT ME \n thaveethu1080@gmail.com \n

thaveethugce@gmail.com \n website \n

www.thaveethupcm.appspot.com");
}
return form26;
}

public Image getImage6 () {
if (image6 == null) {

try {
image6 = Image.createImage ("/sport_basketball.png");
} catch (java.io.IOException e) {


e.printStackTrace ();
}

}
return image6;
}

public Image getImage7 () {
if (image7 == null) {

try {
image7 = Image.createImage ("/sport_soccer.png");
} catch (java.io.IOException e) {


e.printStackTrace ();
}

}
return image7;
}

public Ticker getTicker1 () {
if (ticker1 == null) {

ticker1 = new Ticker ("ENTER YOUR SUBJECT \"CREDIT\"");


re
}
return ticker1;
}

public Ticker getTicker2 () {
if (ticker2 == null) {

ticker2 = new Ticker ("ENTER SUBJECT GRADE");



}
return ticker2;
}

public Display getDisplay() {
return Display.getDisplay(this);
}


public void exitMIDlet() {
switchDisplayable(null, null);
destroyApp(true);
notifyDestroyed();
}


public void startApp() {
if (midletPaused) {
resumeMIDlet();
} else {
initialize();
startMIDlet();
}
midletPaused = false;
}


public void pauseApp() {
midletPaused = true;
}


public void destroyApp(boolean unconditional) {
}
}