Syvum Home Page

Home > Discussions > For all activities

Discussion topic: Contributed Answer/Explanation to Q. 1

Viewing replies        View entire discussion

To go to the homepage of this topic, click here.
Home: cuteritu_1994Original MessageReply  
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_1994Reply 1 of 1Reply
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.

Contact Info © 1999-2024 Syvum Technologies Inc. Privacy Policy Disclaimer and Copyright