Sunday, October 4th, 2009 »
Posted By Ranjith » Total 1 Comment
Write a Java program that computes the payment of a loan based on the amount of the loan, the interest rate and the number of months. It takes one parameter from the browser: Monthly rate;if true, the interest rate is per month; Otherwise the interest rate is annual.
Sunday, October 4th, 2009 »
Posted By Ranjith » Total 1 Comment
public void init()
{
msg+=”init()—>”;
setBackground(Color.orange);
}
Enter input string
a+b*c
Input String:a+b*c
Output String:
abc*+
public stack(int s)
{
size=s>0?s:10;
top=-1;
elements=(E[])new Object[size];
}
while((c=isr.read())!=-1)
{
chars++;
if(c==’\n’)
lines++;
if(c==’\t’ || c==’ ‘ || c==’\n’)
++words;
if(chars!=0)
++chars;
}
Wtire a Java program that reads a file and displays the file on the screen, with a line number before each line.
Write a Java program that reads on file name from the user then displays information about whether the file exists,whether the file is readable,whether the file is writable,the type of the file and the length of the file in bytes
Write a Java program that reads a line of integers and displays each integer and sum of all integers using String Tokenizer class
System.out.println(“Enter the first matrix:”);
Scanner input=new Scanner(System.in);
for(int i=0;i<3;i++)
for(int j=0;j<3;j++)
a[i][j]=input.nextInt();
for(int j=i+1;j
if(names[i].compareTo(names[j])<0)
{
temp=names[i];
names[i]=names[j];
names[j]=temp;
}
}
This is the one stop educational site for all Electronic and Computer students. If you want to learn something new then we are here to help. We work on Microcontroller projects, Basic Electronics, Digital electronics, Computer projects and also in basic c/c++ programs.
#Home #Sitemap #Submit #Terms of Use
Copyright©2011 electrofriends.com All Rights Reserved
Contact:info@electrofriends.com | Powered by Dhyeya