Discussion topic: Contributed Answer/Explanation to Q. 1
To go to the homepage of this topic,
click here.
Home: cuteritu_1994 | Original Message | Reply | Subject: Contributed Answer/Explanation to Q. 25 | import java.io.*;
Posted at: Tue Jan 12 04:36:05 2010 (GMT) |
Page 1 of 1 | From: cuteritu_1994 | Reply 1 of 1 | Reply | | Subject: Contributed Answer/Explanation to Q. 25 | program
import java.io.*;
class salary
{
int ph,msal;
double it;
String name,add,sub;
public static void main(String args[]) throws IOException
{
salary obj=new salary();
obj.accept();
obj.display();
obj.compute();
}
}
InputStreamReader g=new InputStreamReader(System.in);
BufferedReader h=new BufferedReader(g);
name=h.readLine();
add=h.readLine();
sub=h.readLine();
String x1=h.readLine();
ph=Integer.parseInt(x1);
msal=Integer.parseInt(x1);
it=Integer.parseInt(x1);
}
void display()
{
System.out.println(name"" address""subspec);
System.out.println(phone""monthly salary);
}
void compute()
{
int ann=msal*12;
if(ann>175000)
{
it=0.05*ann;
else
it=0;
System.out.println(it);
}
}
Posted at: Tue Jan 12 04:44:26 2010 (GMT)
|
Page 1 of 1
|
|
To post to this forum, you must be signed in as a Syvum member.
Please sign in / register as a member.