Saturday, January 26, 2013

AM MODULATION SIMULATION

public class AMModulation
{
public static void main(String[] args)
{
StdDraw.setXscale(-10,10);
StdDraw.setYscale(-10,10);
double[] y=new double[50000];
double[] x=new double[50000];
double[] z=new double[50000];
StdDraw.line(0,0,10,0);
StdDraw.line(0,0,0,10);
StdDraw.line(0,5,10,5);
for(int i=0;i<45000;i++)
{
x[i+1]=x[i]+Math.PI/500.0;
}
for (int j=0;j<45000;j++)
{
y[j]=5+2*Math.sin(x[j]);
}
for(int i=0;i<45000;i++)
{
z[i]=y[i]*Math.sin(10*x[i]);
}
for(int i=0;i<1500;i++)
{
StdDraw.point(x[i],y[i]);
StdDraw.point(x[i],z[i]);
}


}
}

SIMPLE VIRUS

This is the simple .java virus .Very amazing on how this work .

public class TestOut
{
public static void main(String[] args)
{
int a=1;
while(a<=10)
System.out.println(a);
}
}

you try to run this on the command or simple java compile

javac TestOut.java

java TestOut >TestOut.txt


this type of virus is harmless so you may try to run it for fun and check your free space memory decrease per time

how to remove just stop the program and then .delect file TestOut.txt

Tuesday, December 18, 2012

today word

You can also use elementType arrayRefVar[] to declare an array variable. This style comes
from the C language and was adopted in Java to accommodate C programmers. The style
elementType[] arrayRefVar is preferred.

Mission

1. To develop high talent people who seek the knowledge of electronic and telecommunication
2.To help each other in case of the problem
3.To make the network so that we can share knowledge
4.To make the research on the various field evolve telecommunication