Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Complete IIT AIEEE ICSE ISC PMT help forum

Complete help forum for students preparing for icse iit aieee cbse pmt and other related exams.Stay updated about all 2011 exams.
 
HomeHome  PortalPortal  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  India NewsIndia News  
Keywords
SELECT papers 2009 YEAR 2004 paper 2010 2006 RESULT ICSE CLASS CASE 2007 prelim UNION physics computer graph science question
Latest topics
» Nitration of aniline - IIT JEE 2018 Advanced - solved
computer - Way to write computer ix x project program ICSE EmptyFri Jun 08, 2018 2:34 am by adianadiadi

» Diamagnetic - Paramagnetic - Ni(CO)4, [Ni(CN)4]2- and [NiCl4
computer - Way to write computer ix x project program ICSE EmptyFri Apr 06, 2018 1:05 am by adianadiadi

» IIT JEE chemistry solved interactive question paper
computer - Way to write computer ix x project program ICSE EmptySun Oct 29, 2017 12:11 pm by adianadiadi

» IIT JEE 2015 SOLVED QUESTION PAPER
computer - Way to write computer ix x project program ICSE EmptyWed Oct 19, 2016 1:44 pm by adianadiadi

» IIT JEE chemistry solved questions
computer - Way to write computer ix x project program ICSE EmptySat Jul 18, 2015 6:15 pm by adianadiadi

» General Description of Chinese Market for Foaming Agent ADC
computer - Way to write computer ix x project program ICSE EmptyFri May 09, 2014 2:09 pm by happybaicaitou

» How to get Lowest Cost MBBS Admission?
computer - Way to write computer ix x project program ICSE EmptyMon Feb 24, 2014 6:39 pm by MENTOR 2014

»  girl boy vashikaran specialist agori baba ji +91-9461165
computer - Way to write computer ix x project program ICSE EmptyTue Jan 21, 2014 6:00 pm by krshastri

»  STRONG LOST LOVE SPELL +91-9461165176
computer - Way to write computer ix x project program ICSE EmptyTue Jan 21, 2014 6:00 pm by krshastri

Top posters
abhas
computer - Way to write computer ix x project program ICSE Vote_lcapcomputer - Way to write computer ix x project program ICSE Voting_barcomputer - Way to write computer ix x project program ICSE Vote_rcap 
Anu..i luv icse...:)
computer - Way to write computer ix x project program ICSE Vote_lcapcomputer - Way to write computer ix x project program ICSE Voting_barcomputer - Way to write computer ix x project program ICSE Vote_rcap 
G-7
computer - Way to write computer ix x project program ICSE Vote_lcapcomputer - Way to write computer ix x project program ICSE Voting_barcomputer - Way to write computer ix x project program ICSE Vote_rcap 
siya
computer - Way to write computer ix x project program ICSE Vote_lcapcomputer - Way to write computer ix x project program ICSE Voting_barcomputer - Way to write computer ix x project program ICSE Vote_rcap 
Candy
computer - Way to write computer ix x project program ICSE Vote_lcapcomputer - Way to write computer ix x project program ICSE Voting_barcomputer - Way to write computer ix x project program ICSE Vote_rcap 
jOhNy
computer - Way to write computer ix x project program ICSE Vote_lcapcomputer - Way to write computer ix x project program ICSE Voting_barcomputer - Way to write computer ix x project program ICSE Vote_rcap 
Apurva
computer - Way to write computer ix x project program ICSE Vote_lcapcomputer - Way to write computer ix x project program ICSE Voting_barcomputer - Way to write computer ix x project program ICSE Vote_rcap 
WinRrule
computer - Way to write computer ix x project program ICSE Vote_lcapcomputer - Way to write computer ix x project program ICSE Voting_barcomputer - Way to write computer ix x project program ICSE Vote_rcap 
ambili
computer - Way to write computer ix x project program ICSE Vote_lcapcomputer - Way to write computer ix x project program ICSE Voting_barcomputer - Way to write computer ix x project program ICSE Vote_rcap 
saif
computer - Way to write computer ix x project program ICSE Vote_lcapcomputer - Way to write computer ix x project program ICSE Voting_barcomputer - Way to write computer ix x project program ICSE Vote_rcap 



Search if you can't find it here

Way to write computer ix x project program ICSE

View previous topic View next topic Go down
AuthorMessage
abhas
Active member
Active member
abhas


computer - Way to write computer ix x project program ICSE Vide
PostSubject: Way to write computer ix x project program ICSE computer - Way to write computer ix x project program ICSE EmptySat Nov 01, 2008 10:24 pm

Way to write computer ix x project program ICSE


This is a sample program 4 computer java project you can know the way to write progs. by seeing this...

Always remember to write variable description and comments









import java.io.*;


class prog3


{


void main(
)throws IOException


{



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


//Aj is
object to take input from standard input device


String
n[]=new String[30];//Array of Strings with 30 elements


//to store
names


int
m[]=new int[30];//Array of integer(int) with 30 elements


//to store marks





int a;


for(a=0;a<30;a++)


{//start
of for loop



System.out.println("Enter name of the student");



n[a]=Aj.readLine();//taking names as input



System.out.println("Enter his marks");//displaying related
message



m[a]=Integer.parseInt(Aj.readLine());//taking marks as input



System.out.println(" ");//for a blank line


}//end
of loop






System.out.println("Unsorted data");//displaying related
message



System.out.println("Name
Marks");//displaying related message



System.out.println(" ");//for a blank line






for(a=0;a<30;a++)



System.out.println(n[a]+"
"+m[a]);//displaying unsorted data






System.out.println(" ");//for a blank line






//sorting data bubble sort


int
temp;


String
Temp;


for
(a=0;a<30;a++)



{//start of outer for loop


for (int c=0;c<29-a;c++)



{//start of inner for loop



if(m[c]<m[c+1])



{//start of if condition





/*


* interchanging values of m[c]
& m[c+1]


* and n[c] &
n[c+1] also for sorting


*/


temp=m[c];


m[c]=m[c+1];


m[c+1]=temp;


Temp=n[c];


n[c]=n[c+1];


n[c+1]=Temp;



}//end of if condition



}//end of inner for loop


}//end of outer for loop






System.out.println("Sorted data");//displaying related message



System.out.println("Name
Marks");//displaying related message






for(a=0;a<30;a++)


System.out.println(n[a]+" "+m[a]);//displaying sorted data





}


}





/**


* Variable
Description


* int a - used as
control variable in loop


* int c - used as
control variable in loop


* int temp- to
store value of marks temporarily


* String Temp - to
store names temporarily for interchanging values


*/
Back to top Go down
abhas
Active member
Active member
abhas


computer - Way to write computer ix x project program ICSE Vide
PostSubject: Re: Way to write computer ix x project program ICSE computer - Way to write computer ix x project program ICSE EmptySat Nov 01, 2008 10:25 pm

comments have become wrong (have gone 2 next line) bcos i have pasted the prog...

don't do this.........
Back to top Go down
ashleychan
Active member
Active member



computer - Way to write computer ix x project program ICSE Vide
PostSubject: Re: Way to write computer ix x project program ICSE computer - Way to write computer ix x project program ICSE EmptySat Nov 01, 2008 10:30 pm

is there any siple one using only loop and conditional statements?
Back to top Go down
abhas
Active member
Active member
abhas


computer - Way to write computer ix x project program ICSE Vide
PostSubject: Re: Way to write computer ix x project program ICSE computer - Way to write computer ix x project program ICSE EmptySun Nov 02, 2008 9:33 am

Another sample project prog....



/*To accept the value of units consumed and calculate the
bill


* using given
rates


* and taking
minimum fixed amount tobe paid as Rs.125


*/


class prog1


{


void main(double
u)


{


double b=0;






if(u<=200)///when value of unit is less or equal to 200 units



b=2.25*u;//claculating value of bill


else if
(u<=350)//when 201-350 units are consumed



b=225+2.75*(u-100);//claculating value of bill


else
//when more than 350 units are consumed


b=225+2.75*150+3.25*(u-350);//claculating
value of bill





if
(b<125)//when bill is less than minimum fixed bill



b=125;//assigning bill's value to minimum fixed amount






b=b+(b*2.5/100);//calculating service tax


System.out.println("Bill
:"+b);//printing amount to be paid as bill


}


}





/**


* Variable
Description


* double u- to
accept the value unit consumed as parameter


* double b- to
store the amount to be paid


*/
Back to top Go down
Sponsored content




computer - Way to write computer ix x project program ICSE Vide
PostSubject: Re: Way to write computer ix x project program ICSE computer - Way to write computer ix x project program ICSE Empty

Back to top Go down

Way to write computer ix x project program ICSE

View previous topic View next topic Back to top
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Complete IIT AIEEE ICSE ISC PMT help forum :: Computer :: Computer help forum-