Sunday, November 9, 2008

Exercise Problems (assignment #1 ) in Object -Oriented Programming

for DIT 121

Create a program that will accept a string and the display the string in reverse format. The class name is DIT121xxx.

for DIT 122

Create a program the will accept an integer numbers a N times. Determine and display the lowest number. The class name is DIT122xxx.

for DIT 211

Create a program that will accept a string, counts and displays the numbers in the strings that you entered, without regard to case (uppercase versus lowercase letters). The class name is DIT211xxx.

for BSCS 121

Create a program that will accept 10 integer numbers. Determine and display the highest number. The class name is BSCS121xxx.

for BSIT 121

Create a program the will accept the gender of the students 10 students. Count and display the number of male and female students. The class name is BSIT121xxx.

for BSCS 122

Create a program that will accept 10 integer numbers. Determine and display the sum of all positive and negative numbers. The class name is BSCS122xxx.

for BSIT 122

Create a program that will accept 10 floating float numbers. Compute and display the average. Use any type of loop structures. The class name is BSIT122xxx.

93 comments:

nicolejohn said...

import java.io.*;
public class bsit122njv
{
public static void main (String args[])throws IOException
{
BufferedReader x=new BufferedReader (new InputStreamReader(System.in));
float c,sum,average;
sum=0;
for(int d=0;d<10;d++)

System.out.print("Input a number:");
c=Float.parseFloat(x.readLine());
sum=c+sum;
}
average=sum/10;
System.out.print("The average is:"+average);
}
}


mam nag rurun e2 samin i hope na tama e2 ^_^

Nicole John G. Viray - BSIT 122

eduard said...

import java.io.*;
public class bsit122epc
{
public static void main(String args[])throws IOException
{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
float a=10;
a=0;
for(a=0;a<10;a++)
{
System.out.print("Please input the number is:"+a);
a++;
}
System.out.print("average");
}
}


<< Eduardo Cesario- bsit 122
sana po tama answer ko!

Tibzter said...

import java.io.*;
public class BSIT122SPY {

public static void main(String[] args) throws IOException
{
float n[] = new float[10];
float ave = 0f, sum = 0f;
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

for(int i=0; i<10 ; i++) {
System.out.print("Enter a number please : ");
n[i]=Float.parseFloat(in.readLine());
sum += n[i];
}

ave = sum/10;
System.out.print("\n\nThe average of the 10 numbers is : "+ave);
}
}

Steven Mario P. Yan - BSIT

Mr. Jollibee said...

import.java.io*;
public class BSIT122njv
{
public static void main{String args[]}throws IOException

{

BufferedReader ian = new BufferedReader (new InputStreamReader(System.in));

float a,b,ave;


float num[]=new float[10];


for(a=0;a<10;a++)
{

System.out.print("Enter the numbers" + (a+1) + ">>" + num[a]);
num[a]=Float.parseFloat(ian.readLine());

}


b=0;
for(a=0; a<10; a++)


{

b=b + num[a];
num[a]=a+1;

}

System.out.print("The sum of the numbers is: " + b);

ave=b/10;

System.out.print("The average is " + ave);

}

}


*\Franz Ian Alucilja*\

Limut ko na ata eh.. paxenya po kung mali..

Anonymous said...

Jansen "Mr.KrayziE/Anzem" Jordan BSCS 122 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

import java.io.*;
public class bsit122jlj
{
public static void main (String args[])throws IOException
{
BufferedReader janz=new BufferedReader (new InputStreamReader(System.in));

int a, sum;
int num[]=new int[10];

for(a=0;a<10;a++);
{

System.out.print("Enter the number" + num[a]);
num[a]=Float.parseFloat(janz.readLine());

{

sum=num[a]++;
System.out.print("SUM = " + sum);

}
}

Anonymous said...

Bahala na...wala aq maxado reference eh

ARJENTINO said...

import java.io.*;
public class BSCS121aki
{
public static void main (String args []) throws IOException
{
BufferedReader in= new BufferedReader(new InputStreamReader(System.in));


int num[] = new int[11];
int max=0;
max = num[0];

for(int i = 1; i < num.length; i++)
{
System.out.print("Enter Integer Number " + i + " : ");
num[i]=Integer.parseInt(in.readLine());

if(max< num[i])
max = num[i];
else
System.out.print("");
}

System.out.print("\nThe Highest Number is : "+ max);


}

}

ARJENTINO said...

ma'am ako po to c arjen kevin iglesia...

i just used another google account that's why my name was appeared as linkonkev . . .


ty po ^_^

godbless. . .



import java.io.*;
public class BSCS121aki
{
public static void main (String args []) throws IOException
{
BufferedReader in= new BufferedReader(new InputStreamReader(System.in));


int num[] = new int[11];
int max=0;
max = num[0];

for(int i = 1; i < num.length; i++)
{
System.out.print("Enter Integer Number " + i + " : ");
num[i]=Integer.parseInt(in.readLine());

if(max< num[i])
max = num[i];
else
System.out.print("");
}

System.out.print("\nThe Highest Number is : "+ max);


}

}

Anonymous said...

import java.io.*;
public class bsit122mtc
{
public static void main(string args[]throws IOExeption
{
BufferedReader n=new BufferedReader(new InputStreamReader(System.in));

float m,t,c;
t=10;

for(int m=0;t=10;c++)

System.out.print("enter a number");
m=Float.parseFloat(n.readLine());

t=10;

}
average=m+t+c/3

System.out.print("enter the average");
}

Anonymous said...

import java.io.*;
public class BSIT122gcl
{
public static void main (String args []) throws IOException
{
BufferedReader in=new BufferedReader (new InputStreamReader(System.in));
float g[]= new float[10];
float sum=0f, ave=0f;

for (int a=0;a<10,a++)
{
System.out.print("Enter number ");
g[a]=Float.parseFloat(in.readLine());
sum+=g[a];
}
ave=sum/10;
System.out.print("Average is "+ave);
}
}


GraceLyn Lacerna BSIT122

Anonymous said...

//Create a program that will accept 10 integer numbers. Determine and display the sum of all positive and negative numbers. The class name is BSCS122xxx.//

/*Jemar Christopher O. Cristobal*/

import java.io.*;
public class BSCS122jcoc
{
public static void main(String args [])throws IOException
{
BufferedReader jc=new BufferedReader (New InputStreamReader (System.in));

int j,c,o,p;

System.out.print("Enter A Number NOW: ");
j=Integer.parseInt(jc.readLine());

System.out.print("Enter Another Number AGAIN: ");
c=Integer.parseInt(jc.readLine());

int num[] = new int[11];
int o=0;
o = num[0];

for(int o = 1; o < num; o++)
{
System.out.print("Enter Number " + o + " : ");
num[o]=Integer.parseInt (jc.readLine());

if (o%1)
System.out.print("Add odd Numbers "+o+");

if (p%2)
System.out.print("Add Even Numbers "+p+");

}
}

}

aki said...

import java.io.*;
public class bsit122gga
{
public static void main (String args[])throws IOException
{
BufferedReader in=new BufferedReader (new InputStreamReader(System.in));
float num []=new float[10]
float a,b,c,d,average;
d=10;
sum=0;

for(float a=0;a<10;a++)

System.out.print("please input the" + (a+1) + "number" + num[a]):");
b=Float.parseFloat(in.readLine());
c=c+b;
}

System.out.print('The Sum of all the number you have inputted is" +c);

}
average=c/d;
System.out.print("The Average of the number you had inputted is"+average);
}
}

Gaylord Alfonso BSIT 122
..
.

Anonymous said...

import java.io.*;
public class BSCS122hms
{
public static void main(String args [])throws IOException
{
BufferedReader in=new BufferedReader (New InputStreamReader (System.in));

int a,b,c,d;

System.out.print("Enter 1st Number: ");
a=Integer.parseInt(in.readLine());

System.out.print("Enter 2nd Number : ");
b=Integer.parseInt(in.readLine());

int num[] = new int[11];
int c=0;
c = num[0];

for(int c= 1; c< num; c++)
{
System.out.print("Enter Number " + c + " : ");
num[c]=Integer.parseInt (in.readLine());

if (c=>0)
System.out.print("Add positive Numbers "+o+");

if (d=<0)
System.out.print("Add Negative Numbers "+p+");

}
}

}


Helbert M. Subaan
BSCS122

Anonymous said...

import java.io.*;
public class BSIT122mtcb
{
public static void main (String args[])throws IOException
{
BufferedReader jun=new BufferedReader (new InputStreamReader(System.in));
float a,b,c,d,e,f,g,h,i,j,ave=0,x=0;
for(float x=0,x<2,x++)
{
System.out.print("Enter number:");
a=Float.parseFloat(jun.readLine());
System.out.print("Enter number:");
b=Float.parseFloat(jun.readLine());
System.out.print("Enter number:");
c=Float.parseFloat(jun.readLine());
System.out.print("Enter number:");
d=Float.parseFloat(jun.readLine());
System.out.print("Enter number:");
e=Float.parseFloat(jun.readLine());
System.out.print("Enter number:");
f=Float.parseFloat(jun.readLine());
System.out.print("Enter number:");
g=Float.parseFloat(jun.readLine());
System.out.print("Enter number:");
h=Float.parseFloat(jun.readLine());
System.out.print("Enter number:");
i=Float.parseFloat(jun.readLine());
System.out.print("Enter number:");
j=Float.parseFloat(jun.readLine());

ave=(a+b+c+d+e+f+g+h+i+j)/10;
}
for(float x=0,x<2,x++)
{
System.out.print(" " + ave);
System.out.print("The average is:" + ave);
}
}
}

Anonymous said...

import java.io.*;
public class BSIT122mtcb {

public static void main(String[] args) throws IOException
{
float num[] = new float[10];
float average = 0, sum =0;
BufferedReader jun = new BufferedReader(new InputStreamReader(System.in));

for(int t=0; t<10 ; t++) {
System.out.print("Enter num: ");
num[t]=Float.parseFloat(jun.readLine());
sum += num[t];
}

average =(sum)/10;
System.out.print(" "+ave);
}
}

Anonymous said...

import java.io.*;
public class BSIT122mtcb {

public static void main(String[] args) throws IOException
{
float num[] = new float[10];
float average = 0, sum =0;
BufferedReader jun = new BufferedReader(new InputStreamReader(System.in));

for(int t=0; t<10 ; t++) {
System.out.print("Enter num: ");
num[t]=Float.parseFloat(jun.readLine());
sum += num[t];
}

average =(sum)/10;
System.out.print(" "+ave);
}
}

Anonymous said...

Create a program that will accept 10 floating float numbers. Compute and display the average. Use any type of loop structures. The class name is BSIT122xxx.

Jerick I. Bayotas
BSIT-122

import java.io.*;
public class BSIT 122JIB
{
public static void(String args[])throws IOException
{
BufferedReader x = new BufferedReader (new InputStreamReader(System.in));

float a,sum,ave;
sum=0;

while(a<10)
{
System.out.print("Input a number ");
a=Float.parseFloat(x.readLine());
sum+=a;
ave=sum/10;
a++;
}
System.out.print("The average is " + ave);

}
}

hehehe,,,,
hindi ko n tanda Mam eh!!
pero sana tama?
kayo n po bahala jan.....

Anonymous said...

import java.io.*;
public class BSCS122hms
{
public static void main(String args [])throws IOException
{
BufferedReader in=new BufferedReader (New InputStreamReader (System.in));

int w,x,y,z;

System.out.print("Pls enter 1st Number: ");
w=Integer.parseInt(in.readLine());
System.out.print("Pls enter 2nd Number : ");
x=Integer.parseInt(in.readLine());
int num[] = new int[11];
int y=0;
y = num[0];
for(int y= 1; y< num; c++)
{
System.out.print("Enter Number " + c + " : ");
num[y]=Integer.parseInt (in.readLine());
if (y=>0)
System.out.print("Add positive Numbers "+o+");
if (z=<0)
System.out.print("Add Negative Numbers "+z+");
}
}
}


__maam gud pm.e2 po gawa ko___tnx^_^jervy sardona^_^

Anonymous said...

maam cnxa na fuh nd q lam eh....huh huh huh

Sharmine Lingayo

Anonymous said...

import java.io.*;
public class BSCS122jdp
{
public static void main(String args[])throws IOException
{
BufferedReader jp=new BufferedReader(new InputStreamreader(System.in));
int num[]=new int[11];
int sum=0;
sum=num[0];

for(int a<0;a<11;a++)
{
Sytem.out.print("Enter the number :");
num[a]=Integer.parseInt(jp.readLine());

if(sum < num[a])
{sum=num[a];}

else
{System.out.print("");}

}

System.out.print("\nThe negative and positive number is" +sum);
}
}

maam xenxa na poh hndi ko po lam sagot eh pro sna poh tama hay

Janine Porte..

Anonymous said...

import java.io.*
public class BSCS122sml
{
public static viod main(String args[])throws IOException
{
BufferedReader s=new BufferedReader(new InputStreamReader(System.in));

int num[];
int num[]=new int[10];
int=sum[10];

for(int c<1;c=1;c++)
{
System.out.print("Enter the number");
int num[c]=Integer.parseInt(in.readLine());

if(sum < num[c])
sum=num[c];
else
System.out.print("Sum" + Sum);
}
}

maam cnxa na fuh nd q lam eh....huh huh huh

Sharmine Lingayo

Anonymous said...

import java.io.*;
public class BSCS122mas
{
public static void main(String args[])throws IOEXception
{
BufferedReader m=new BufferedReader(new InputStreamReader(System.in));
int num[]=new int[11];
int sum=0;
sum=num[0];

for(int j=0;1<11;j++)
{
System.out.print("Enter Integer "+j);
num[j]=integer.parseInt(m.readLine());

if(sum < num[j]
sum=num[j];
else
System.out.print("");
}
System.out.print("\nThe Positive and Negative no. is "+sum);
}
}

mAam, e2 pUh uNg akin..
cNza nAh puh d qnA xEh tNda..

TnX pUh..
kIpsAfe oLweiZ..

Marjorie A. Sergantes
BSCS122

Anonymous said...

import java.io.*;
public class BSIT122bgm
{
public static void main(String args[])throws IOException
{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
{
float a,sum,average;
int b=0;
{
System.out.print("Enter a number : ");
a=Float.parseFloat
}
for(a=0; a<10 ; a++);
System.out.print("The sum is : +"sum);
(sum)/10;
System.out.print("The average is : +"average);
}
}
}

Anonymous said...

Bernalyn G. Manjares po ma'am...nalimutan lng ung name...thx

Anonymous said...

import java.io.*;
public class BSIT122crl
{
public static void main(String args[])throws IOException
{
BufferedReader a=new BuffedReader(new InputStreamReader(System.in));
{
float b,sum,average;
int a=0;
{
System.out.print("Enter a Number: ");
a=Float.parseFloat
}
for(b=0;b<10;a++);
System.out.print("The sum is : +"sum);
(sum)/10;
System.out.print("The average is : +"Average);
}
}
}
Camela Rose Lina po maa'm..
tnx po..

Anonymous said...

import java.io.*;
public class BSCS122jml
{
public static void main(String args[])throws IOException
{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
int num[a]=new int[10];
int even=0, odd=0, sum;
for(int b=0;b<10;b++)
{

System.out.print("Enter a number : ");
num[a][b]=Integer.parseInt(in.readLine());
if (num[a][b]>10)
}
for(int b=0; b<10; b++)
{
if((num[a][b]%2)==0)
even +=num[a][b];
else
odd +=num[a][b];
}

System.out.println("The sum of odd : "+odd);
System.out.println("The sum of even : "+even);
}
}
Jobelle Marie O. Llanes

Eyok said...
This comment has been removed by the author.
Anonymous said...

import java.io*;
public class BSIT121rpd
{
public class static void main(string args[])throws IOException
{
int male=0;
int female=0;
BufferedReader a = new BufferedReader (new InputStreamReader (System.in));
{
For (int=0;i<10;i++)
{
System.out.println("pls enter the gender");
gender [i] = a.readLine();
if ((gender [i].equals("male"))||(gender[i].equals("male")))
male++;{
}else if ((gender [i].equals("female")||(gender [i].equals("female")))
female++;{
}else{
System.out.println(".");
}
}
System.out.println("Female" + female);
System.out.println("Male" + male);
}
}


Mam yan lng poh nkayanan qh.......
Riniaflor P. Dealino
BSIT 121

Anonymous said...

import java.io*;
public class BSIT121lop
{
public class static void main(string args[])throws IOException
{
int m=0;
int f=0;
BufferedReader a = new BufferedReader (new InputStreamReader (System.in));
{
For (int=0;i<10;i++)
{
System.out.println("pls enter the gender");
gender [i] = a.readLine();
if ((gender [i].equals("male"))||(gender[i].equals("male")))
m++;{
}else if ((gender [i].equals("female")||(gender [i].equals("female")))
f++;{
}else{
System.out.println(".");
}
}
System.out.println("Male" + m);
System.out.println("Female" + f);
}
}


Ma'am dko sure!!!!
Lenicel O. Pitalco
BSIT121

Anonymous said...

import java.io*;
public class BSIT121jmj
{
public class static void main(string args[])throws IOException
{
int x=0;
int y=0;
BufferedReader a = new BufferedReader (new InputStreamReader (System.in));
{
For (int=0;i<10;i++)
{
System.out.println("pls enter the gender");
gender [i] = a.readLine();
if ((gender [i].equals("male"))||(gender[i].equals("male")))
x++;{
}else if ((gender [i].equals("female")||(gender [i].equals("female")))
y++;{
}else{
System.out.println(".");
}
}
System.out.println("Male" + x);
System.out.println("Female" + y);
}
}


Ma'am sna pOh tma ung gwa....^-^..
Jin-Jilly M. Juico
BSIT121

Anonymous said...

import java.io*;
public class BSIT121cnm
{
public class static void main(string args[])throws IOException
{
int m=0;
int f=0;
BufferedReader a = new BufferedReader (new InputStreamReader (System.in));
{
For (int=0;i<10;i++)
{
System.out.println("pls enter the gender");
gender [i] = a.readLine();
if ((gender [i].equals("male"))||(gender[i].equals("male")))
m++;{
}else if ((gender [i].equals("female")||(gender [i].equals("female")))
f++;{
}else{
System.out.println(".");
}
}
System.out.println("Male" + m);
System.out.println("Female" + f);
}
}


Mam i don't know if it is correct
Cindy N. Monterey
Bsit121

Anonymous said...

import java.io*;
public class BSIT121jir
{
public class static void main(string args[])throws IOException
{
int j=0;
int r=0;
BufferedReader a = new BufferedReader (new InputStreamReader (System.in));
{
For (int=0;i<10;i++)
{
System.out.println("pls enter the gender");
gender [i] = a.readLine();
if ((gender [i].equals("male"))||(gender[i].equals("male")))
j++;{
}else if ((gender [i].equals("female")||(gender [i].equals("female")))
r++;{
}else{
System.out.println(".");
}
}
System.out.println("Female" + j);
System.out.println("Male" + r);
}
}


Mam nd aqh sure
Jane I. Ricaplza
BSIT121

Anonymous said...

import java.io*;
public class BSIT121enb
{
public class static void main(string args[])throws IOException
{
int w=0;
int u=0;
BufferedReader a = new BufferedReader (new InputStreamReader (System.in));
{
For (int=0;i<10;i++)
{
System.out.println("pls enter the gender");
gender [i] = a.readLine();
if ((gender [i].equals("male"))||(gender[i].equals("male")))
w++;{
}else if ((gender [i].equals("female")||(gender [i].equals("female")))
u++;{
}else{
System.out.println(".");
}
}
System.out.println("Female" + u);
System.out.println("Male" + w);
}
}


Mam yan lng po alam qh
Endrille N. Banayado
BSIT121

Anonymous said...

import java.io.*;
public class BSCS121cab
{
public static void main (String args []) throws IOException
{
BufferedReader in= new BufferedReader(new InputStreamReader(System.in));


int num[] = new int[10];
int max=0;
max = num[1];

for(int i = 1; i < num.length; i++)
{
System.out.print("Enter Integer Number " + i + " : ");
num[i]=Integer.parseInt(in.readLine());

if(max< num[i])
max = num[i];
else
System.out.print("");
}

System.out.print("\nThe Highest Number is : "+ max);


}

}

Anonymous said...

import java.io.*;
public class BSCS121cab
{
public static void main (String args []) throws IOException
{
BufferedReader in= new BufferedReader(new InputStreamReader(System.in));


int num[] = new int[10];
int max=0;
max = num[1];

for(int i = 1; i < num.length; i++)
{
System.out.print("Enter Integer Number " + i + " : ");
num[i]=Integer.parseInt(in.readLine());

if(max< num[i])
max = num[i];
else
System.out.print("");
}

System.out.print("\nThe Highest Number is : "+ max);


}

}

Clariza A. Barnuevo
BSCS121

Anonymous said...

import java.io.*;
public class BSIT 121 ant
{
public class main (String []args)throws IOException
{
string gen;
int ctr=0;
int mctr=0;
int fctr=0;
BufferedReader x=newBufferedReader(System.in));
for(cttr=1;ctr<=10;ctr++)
{
System.out.println("Pls enter the StudentName: ");
gen=(x.readLine())
{
if ((gen.equals("male")||((gen.equals("Male"))
mctr=mctr++;
else if((gen.equals("female")||((gender.equals("Female"))
fctr=fctr++;
}
}
System.out.println("Total number of male: "+mctr);
System.out.println("Total number of female: "+fctr);
}
}

mArk aNtHony bAleriO
BSIT 121

Anonymous said...

import java.io.*
public class BSCS121cer{
public static void main (Strings args[])throws IOException
{
BufferedReader x=new BufferedReader(new InputStreamReader (System.in)):
int num[] = int num[11];
int max=0;
max=num[0];
for (int=0;int<10;itt)
{
System.out.print(" Please Enter a Number " + i + " : ");
num[i]=integer.parseInt(in.readLine());
if(max < num[i])
max = num[i];
else
System.out.print("");
}
System.out..print("\n The Highest Number is: " + max);
}
}

Anonymous said...

import java.io.*
public class BSCS121cer{
public static void main (Strings args[])throws IOException
{
BufferedReader x=new BufferedReader(new InputStreamReader (System.in)):
int num[] = int num[11];
int max=0;
max=num[0];
for (int=0;int<10;itt)
{
System.out.print(" Please Enter a Number " + i + " : ");
num[i]=integer.parseInt(in.readLine());
if(max < num[i])
max = num[i];
else
System.out.print("");
}
System.out..print("\n The Highest Number is: " + max);
}
}

Charles Edsel Reyes
BSCS 121

Anonymous said...

import java.io.*;
public class DIT122RCR
{
public static void main(String args [])throws IOException
{
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
int Nx;

System.out.print("Enter number");
Nx=Integer.parseInt(x.readLine());
while(0>Nx)
{
System.out.print("The lowest number are"+Nx);
Nx++;
}
}
}

Anonymous said...

import java.io.*;
public class dit122jrp
{
public static void main(String args [])throws IOException
{
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
int a=0;

System.out.print("Enter number");
a=Integer.parseInt(x.readLine());
while(0>a);
{
System.out.print("The inputted number are"+a);
a++;
}
}
}

Jenny-lyn R. Parcon DIT122

Anonymous said...

import java.io.*;
public class DIT112gma
{
public static void main(String args[])throws IOException
{
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
int Nx;
Nx=0;
for(Nx=1; Nx<1; Nx++)
{
System.out.print("Enter number:");
Nx=Integer.parseInt(x.readLine());
}
{
System.out.print("\nthe lowest number is:"+Nx);
}
}
}

Anonymous said...

import java.io.*;
public class dit122sel
{
public static void main(String args [])throws IOException
{
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
int z=5;

System.out.print("Enter number");
Nx=Integer.parseInt(x.readLine());
while(5>z);
{
System.out.print("The number are": +z);
z++;
}
}
}

Anonymous said...

import java.io.*;
public class DIT122mda
{
public static void main(String args[])throws IOException
{
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
int Nx;
Nx=2;
for(Nx=2; Nx<1; Nx++)
{
System.out.print("Enter number:");
Nx=Integer.parseInt(x.readLine());
}
{
System.out.print("\nthe lowest number is:"+Nx);
}
}
}

Anonymous said...

import java.io.*;
public class DIT122jcs
{
public static void main(String args [])throws IOException
{
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
int Nx=2;

System.out.print("Enter number");
Nx=Integer.parseInt(x.readLine());
while(2>Nx)
{
System.out.print("The lowest number are"+Nx);
Nx++;
}
}
}

JORALIE SANTAYANA DIT122

Anonymous said...

import java.io.*;
public class DIT122MPT
{
public static void main (String args[])throws IOException
{
BufferedReader m=new BufferedReader (new InputStreamReader(System.in));
int Nx=0;

System.out.print("Enter number")
Nx=Integer.parseInt(m.readLine());
while(a>Nx)
{
System.out.print("The number is": +Nx);
Nx++:
}
}
}

Anonymous said...

import java.io.*;
public class DIT211JNM
{
public static void main(String args[]) throws IOException
{
BufferedReader input=new BufferedReader (new InputStreamReader(System.in());
String N;
int sizes[];
sizes = new int [6];

System.out.println("ENTER STRING: ");
N= input.readLine();
System.out.println("THE NUMBERS OF STRING IS: ");
System.out.print(sizes.length);
}
}





DE MESA JESSICA NADINE E. DIT211

Anonymous said...

import java.io.*;
public class DIT211CGG
{
public static void main(String args[]) throws IOException
{
BufferedReader input=new BufferedReader(new InputStreamReader(System.in());
String a;
int sizes[];
sizes = new int[8];

System.out.print("enter string:");
a = input.readLine();
System.out.print("the number of string:");
System.out.print(sizez.length);
}
}

Cherry Garcia
DIT2 1/1

Anonymous said...

Arlene P. Balanak

import java.io.*;
public class BSIT121apb
{
public static void main(String args [])throws IOException
{
int male=0;
int female=0;
BufferedReader a=new BufferedReader (new InputStreamReader(System .in));
for (int=0;i<10;i++)
{
System.out.println("Please enter the gender");
gender [i]=a.readLine();
if((gender[i].equals ("Male"))||(gender [i].equals("male")))
male++;{
} else if ((gender [i].equals ("Female"))||(gender [i].equals ("female")))
female++;{
} else{
System.out.println(" ");
}
}
System.out.[println("Male":+male);
System.out.println("Female":+Female);
}
}

Anonymous said...

import java.io.*;
public class BSCS122abe
{
public static void main(String args [])throws IOException
{
BufferedReader jc=new BufferedReader (New InputStreamReader (System.in));

int j,c,o,p;

System.out.print("Enter A Number NOW: ");
j=Integer.parseInt(jc.readLine());

System.out.print("Enter Another Number AGAIN: ");
c=Integer.parseInt(jc.readLine());

int num[] = new int[11];
int o=0;
o = num[0];

for(int o = 1; o < num; o++)
{
System.out.print("Enter Number " + o + " : ");
num[o]=Integer.parseInt (jc.readLine());

if (o%1)
System.out.print("Add odd Numbers "+o+");

if (p%2)
System.out.print("Add Even Numbers "+p+");

}
}

}

Anonymous said...

import java.io.*;
public class BSCS122abe
{
public static void main(String args [])throws IOException
{
BufferedReader jc=new BufferedReader (New InputStreamReader (System.in));

int j,c,o,p;

System.out.print("Enter A Number NOW: ");
j=Integer.parseInt(jc.readLine());

System.out.print("Enter Another Number AGAIN: ");
c=Integer.parseInt(jc.readLine());

int num[] = new int[11];
int o=0;
o = num[0];

for(int o = 1; o < num; o++)
{
System.out.print("Enter Number " + o + " : ");
num[o]=Integer.parseInt (jc.readLine());

if (o%1)
System.out.print("Add odd Numbers "+o+");

if (p%2)
System.out.print("Add Even Numbers "+p+");

}
}

}



abe laureta BSCS 122

Anonymous said...

import java.io.*;
public class BSCS121mlm
{
public static void main (String args []) throws IOException
{
BufferedReader a = new BufferedReader(new InputStreamReader(System.in));

int num[] = new int[10];
int max=0;
max = num[1];
for(int i = 1; i < num; i++)
{
System.out.print("Enter Integer Number " + i + " : ");
num[i]=Integer.parseInt(a.readLine());
if(max< num[i])
max = num[i];
else
System.out.print("");
}
System.out.print("The Highest Number is : "+ max);
}
}


Mariz L. Marfa
BSCS121

Anonymous said...

import java.io.*;
public class DIT211crr
{
public static void main(String args[])throws IOException
{
BufferedReader x=new BufferedReader (new InputStreamReader(System.in));
String l;
int p;
System.out.print("Enter Letter");
l=input.readLine();
p=len$(l);
System.out.print("The Length of the character is: "+p);
}
}

Anonymous said...

import java.io.*;
public class DIT211ran
{
public static void main(String args[])throws IOException
{
BufferedReader x=new BufferedReader (new InputStreamReader(System.in));
String h;
int z;
System.out.print("enter string");
h=input.readLine();
z=strlen(h);
System.out.print("the number of character is: "+z);
}
}


Raniel Mallari DIT211

Anonymous said...

import java.io.*;
public class DIT211crr
{
public static void main(String args[])throws IOException
{
BufferedReader x=new BufferedReader (new InputStreamReader(System.in));
String l;
int p;
System.out.print("enter string");
l=input.readLine();
p=strlen(l);
System.out.print("the number of character is: "+p);
}
}

Christian Richelo S. Reyes DIT211

Anonymous said...

import java.io.*;
public class BSCS121mdm
{
public static void main (String args []) throws IOException
{
BufferedReader x = new BufferedReader(new InputStreamReader(System.in));
int num[] = new int[10];
int max=0;
max = num[1];
for(int i = 1; i < num.length; i++)
{
System.out.print("Enter Integer Number " + i + " : ");
num[i]=Integer.parseInt(x.readLine());
if(max< num[i])
max = num[i];
else
System.out.print("");
}
System.out.print("\nThe Highest Number is : "+ max);
}
}


Michelle D. Miguel
BSCS121

Anonymous said...

import java.io.*;
public class mjSalesDIT211
{
public static void main(String args[])throws IOException
{
BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
String m;
int j;
System.out.print("Enter a String");
m=x.readLine();
j=Lenght(m);
System.out.print("The number of charcter is"+j);
}
}

Maam sagot ko po yan.. Mary Joy L. Sales DIT 211

Anonymous said...

import java.io.*;
public class DIT122jime
{
public static void main(String args [])throws IOException
{
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
int Ax;

System.out.print("Enter number");
Ax=Integer.parseInt(x.readLine());
while(0>Ax)
{
System.out.print("The lowest number are"+Ax);
Ax++;
}
}
}

JEDRIC IVAN M. ELEAZAR...
DIT122

Anonymous said...

import java.io.*;
public class DIT122jime
{
public static void main(String args [])throws IOException
{
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
int Ax;

System.out.print("Enter number");
Ax=Integer.parseInt(x.readLine());
while(0>Ax)
{
System.out.print("The lowest number are"+Ax);
Ax++;
}
}
}

Anonymous said...

import java.io.*;
public class DIT122jime
{
public static void main(String args [])throws IOException
{
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
int Ax;

System.out.print("Enter number");
Ax=Integer.parseInt(x.readLine());
while(0>Ax)
{
System.out.print("The lowest number are"+Ax);
Ax++;
}
}
}

JEDRIC IVAN M. ELEAZAR

Anonymous said...

import java.io.*;
public class DIT122NSO
{
public static void main(String args[])throws IOException
{
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
int Mx;
Mx=3;
for(Mx=3; Mx<1; Mx++)
{
System.out.print("Enter number:");
Mx=Integer.parseInt(x.readLine());
}
{
System.out.print("\nthe lowest number is:"+Mx);
}
}
}
NINIO OBMERGA
DIT122

Anonymous said...

import java.io.*;
public class jewelbrionesDIT211
{
public static void main(String args[])throws IOException
{
BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
String w;
int b;
System.out.print("Enter a String");
w=x.readLine();
b=Lenght(w);
System.out.print("The number of charcter is"+b);
}
}
maam nagpaturo me nan hah..haha..
sorry poh late..Ma.Jewel Briones..;)..

Anonymous said...

REYNALD BERNIE R. MEDINA

import java.io.*;
public class DIT122RRM
{
public static void main(String args [])throws IOException
{
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
int N;
for(N=5; N<5; N++)
{
System.out.print("Enter number");
N=Integer.parseInt(x.readLine());
}
System.out.print(/*The lowest number are*/+N);
N++;
}
}

Anonymous said...

import java.io.*;
public class BSCS122xxx
{
public static void main(String args [])throws IOException
{
BufferedReader re=new BufferedReader (New InputStreamReader (System.in));
int e,b,c,d;

System.out.print("Enter 1st Number: ");
e=Integer.parseInt(re.readLine());
System.out.print("Enter 2nd Number : ");
b=Integer.parseInt(re.readLine());
int num[] = new int[11];
int c=0;
c = num[0];
for(int c= 1; c< num; c++)
{
System.out.print("Enter Number " + c + " : ");
num[c]=Integer.parseInt (re.readLine());
if (c=>0)
System.out.print("Add positive Numbers "+o+");
if (d=<0)
System.out.print("Add Negative Numbers "+p+");
}
}
}

<< Regine Ricamara BSCS-122

Anonymous said...

mam bat lage tag is broken nd kame makapag comment

Anonymous said...

import java.io.*;
public class DIT211MQA
{
public static void main(String args[])throws IOExeption
{
Buffereader input = new buffereadreader
(new Input streamReader (System.in));
String x int y;
System.out.print(:Enter String";
x= inputreadLine();
y= strlen(x);
System.out.print("Enter name"+y);
}
}

mark anthony ayala

Anonymous said...

import java.io.*;
public class DIT122aoa
{
public static void main(String args[]) throws IOException
{
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
int a;
System.out.print("Enter number");
a=Integer.parseInt(x.readLine());
if (a<10)
System.out.print("The number is below 10");
else
System.out.print("The number is not below 10");
}
}

Alvin acesor Dit 122

Anonymous said...

import java.io.*;
public class ratatlonghariDIT211
{
public static void main(String args[])throws IOException
{
BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
String a;
int x;
System.out.print("Enter a string");
a = input.readLine();
x = strLength(a)
System.out.print("The number of character is" + x);
}
}

Maa'm cencia n poh at late ang comment ko. Thank's poh at good eve.

Anonymous said...

import java.io.*;
public class DIT122mfc
{
public static void main(String args[]) throws IOException
{
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
int m;
System.out.print("Enter number");
m=Integer.parseInt(x.readLine());
if (m<5)
System.out.print("The number is below 5");
else
System.out.print("The number is not below 5");
}
}

MidKnighte Camonias DIT 122

Anonymous said...

import java.io.*;
public class DIT122MAM
{
public static void main(String args [])throws IOException
{
BufferedReader mark=new BufferedReader(new InputStreamReader(System.in));
int N;
for(N=5; N<5; N++)
{
System.out.print("Input number");
N=Integer.parseInt(mark.readLine());
}
System.out.print(/*The lowest number are*/+N);
N++;
}
}

Anonymous said...

import java.io.*;
public class dit121mrf
{
public static void main(String[] args)throws IOException
{

BufferedReader x= new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter the sentence that is going to be reversed: ");
String words = (x.readLine());

String reverse = new StringBuffer(words).reverse().toString();


System.out.println("Normal : " + words);

System.out.println("Reverse: " + reverse);
}
}

------>mark anthony flores
dit 121

hirapppppppppppppppppp!!!!!!!

Anonymous said...

import java.io.*;
public class jvvim
{
public static void main (String args[])throws IOException
{
BufferedReader x=new BufferedReader (new InputStreamReader(System.in));
float c,sum,average;
sum=0;
for(int d=0;d<10;d++)

System.out.print("Input a number:");
c=Float.parseFloat(x.readLine());
sum=c+sum;
}
average=sum/10;
System.out.print("The average is:"+average);
}
}
-JACOB MANCENIDO

Anonymous said...

//mam answer ko!
//JERICO D. ARENAS
import java.io.*;
public class DIT121JEC
{
public static void main (String args[])throws IOException
{
BufferedReader x= new BufferedReader(new InputStreamReader(System.in));

System.out.print("enter name: ");
String a = (x.readLine());
String reverse = new StringBuffer(a).reverse().toString();
System.out.print(" "+reverse);
}
}

Anonymous said...

import java.io.*;
public class DIT121SVM
{
public static void main(String[] args)throws IOException
{

BufferedReader x= new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter the sentence that is going to be reversed: ");
String words = (x.readLine());

String reverse = new StringBuffer(words).reverse().toString();


System.out.println("Normal : " + words);

System.out.println("Reverse: " + reverse);
}
}

euna_julz said...

...Umali, Ronalyn E DIT121...

/* Create a program that will accept a string and the display the string in

reverse format. The class name is DIT121xxx. */


import java.io.*;
public class DIT121reu

{

public static void main (String args[]) throws IOException

{

BufferedReader input=new BufferedReader (new InputStreamReader(System.in));
String name,b;

System.out.print ("\n Enter String: ");
name=(input.readLine());
b=reverseString;

System.out.print("\n The entered String in Revese format: "+b);
}
}

Anonymous said...

import java.io.*;
public class DIT121SVM
{
public static void main (String args[])throws IOException
{
BufferedReader Sherwin= new BufferedReader(new InputStreamReader(System.in));

System.out.print("enter name: ");
String A = (sherwin.readLine());
String reverse = new StringBuffer(A).reverse().String();
System.out.print(" "+reverse);
}
}

"(Sherwin V. Morong)"

Anonymous said...

import java.io.*;
public class DIT121xtian
{
public static void main (String args[]) throws IOException
{
BufferedReader xtian=new BufferedReader (new InputStreamReader(System.in));
String name,b;
System.out.print ("\n Enter String: ");
name=(xtian.readLine());
b=reverseString;
System.out.print("\n The entered String in Revese format: "+b);
}
}


"CHRISTIAN ABASTILLAS"

JULZ_EUNA said...

import java.io.*;
public class DIT121jcs
{
public static void main (String args[]) throws IOException
{
BufferedReader input=new BufferedReader (new InputStreamReader(System.in));
String x,y;
y=x.reverseString;
System.out.print ("\n Enter String: ");
x=(input.readLine());
System.out.print("\n The Entered String "+x);
System.out.print("\n The string when revesed "+y);
}
}
>>> JULIUS C SALCEDO <<<
>>>>>>>>DIT-121<<<<<<<<<

Anonymous said...

import java.io.*;
public class DIT121csr
{
public static void main(String args[])throws IOException
{
BufferedReader csr=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter the name that is going to be reversed: ");
String name =(csr.readLine());

String reverse = new StringBuffer(name).reverse().toString();

System.out.println("Normal : " + name);
System.out.println("Reverse: " +reverse);
}
}


Crestita S. Ramo
DIT121
mam dko alam kung tama.....

Anonymous said...

import java.io.*;
public class DIT121lal
{
public static void main(String args[])throws IOException
{
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter the gender that is going to be reversed: ");
String gender =(x.readLine());

String reverse = new StringBuffer(gender).reverse().toString();

System.out.println("Normal : " + gender);
System.out.println("Reverse: " +reverse);
}
}


Lovely A. Leynes
DIT121

Anonymous said...

import java.io.*;
public class DIT121ssa
{
public static void main(String args[])throws IOException
{
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter the product that is going to be reversed: ");
String product =(x.readLine());

String reverse = new StringBuffer(product).reverse().toString();

System.out.println("Normal : " + product);
System.out.println("Reverse: " +reverse);
}
}

Shirriel S. Azcarrate
DIT121

Anonymous said...

Urica A. Laspinas
DIT121



import java.io.*;
public class DIT121ual
{
public static void main(String args[]) throws IOException
{
String uri,rica;
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter String name: ");
name=(x.readLine());
rica=Str.reverse(uri);
System.out.print("Reverse is: " +rica);
}
}

roydel morete said...

import java.io.*;
public class DIT121rml
{
public static void main(String args[])throws IOException
{
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter the product that is going to be reversed: ");
String product =(x.readLine());

String reverse = new StringBuffer(product).reverse().toString();

System.out.println("Normal : " + product);
System.out.println("Reverse: " +reverse);
}
}

roydel morete dit121

Anonymous said...

import java.io.*;
public class DIT121csm
{
public static void main(String args[]) throws IOException
{
String name,c;
BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter String name: ");
name=(input.readLine());
c=String.reverse(name);
System.out.print("Reverse is: " +c);
}
}


Carine Mendoza
DIT121
sana poh tama.. hehehhe...

Anonymous said...

import java.io.*;
public class DIT121gfm
{
public static void main(String args[]) throws IOException
{
String gab,ganda;
BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter String name: ");
gab=(input.readLine());
ganda=String.reverse(gab);
System.out.print("Reverse is: " +ganda);
}
}

Gabriel Magno
DIT121

Anonymous said...

iimport java.io.*;
public class DIT121RTO
{
public static void main(String args[]) throws IOException
{
String r,t;
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter String name: ");
r=(x.readLine());
t=String.reverse(r);
System.out.print("Reverse is: " +t);
}
}rochelle ocan
dit121

Anonymous said...

mport java.io.*;
public class DIT121IBJ
{
public static void main(String args[]) throws IOException
{
String i,j;
BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter String name: ");
i=(input.readLine());
j=String.reverse(i);
System.out.print("Reverse is: " +j);
}
}ira jastiva
dit121

Anonymous said...

import java.io.*;
public class DIT121RMT
{
public static void main(String args[]) throws IOException
{
String rho,dora;
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter String name: ");
rho=(x.readLine());
dora=String.reverse(rho);
System.out.print("Reverse is: " +dora);
}
}
tagaya,rhodora
DIT121

Anonymous said...

import java.io.*;
public class DIT121DJF
{
public static void main(String args[]) throws IOException
{
String dan,jewel;
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter String name: ");
name=(x.readLine());
jewel=Str.reverse(dan);
System.out.print("Reverse is: " +jewel);
}
}


DIT 121 Fojas Dan Jewel

Anonymous said...

import java.io.*;
public class DIT121kmb
{
public static void main(String args[]) throws IOException
{
String kris,krista;
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter String name: ");
name=(x.readLine());
kris=Str.reverse(krista);
System.out.print("Reverse is: " +kris);
}
}

Anonymous said...

Create a program that will accept a string and the display the string in reverse format. The class name is DIT121xxx.


import java.io.*;
public class DIT121ama
{
public static void main(String args[]) throws IOException
{
String almirez,allah;
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter String name: ");
name=(x.readLine());
allah=Str.reverse(almirez);
System.out.print("Reverse is: " +allah);
}
}


Allah M. Almirez DIT 121
SAna tama po mam hehehe!!!!

querijero_jpq said...

import java.io.*;
public class dit121jpq
{
public static void main(String args[])throws IOException
{
BufferedReader x=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter the product reverse: ");
String paul =(x.readLine());

String reverse = new StringBuffer(paul).reverse().toString();

System.out.println(" Normal : " + paul);
System.out.println(" Reverse: " +reverse);
}
}

Anonymous said...

import java.io.*;
public class DIT121LMQ
{
public static void main(String args[])throws IOException
{
BufferedReader joy=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter the string by reverse: ");
String lady =(joy.readLine());

String reverse = new StringBuffer(lady).reverse().toString();

System.out.println(" Normal : " + lady);
System.out.println(" Reverse: " +reverse);
}
}

Anonymous said...

//*LADY JOY M.QUERIJERO*//
import java.io.*;
public class DIT121LMQ
{
public static void main(String args[])throws IOException
{
BufferedReader joy=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter the string by reverse: ");
String lady =(joy.readLine());

String reverse = new StringBuffer(lady).reverse().toString();

System.out.println(" Normal : " + lady);
System.out.println(" Reverse: " +reverse);
}
}