Syvum Home Page

Home > Discussions > For all activities

Discussion topic: Contributed Answer/Explanation to Q. 1

Viewing messages

To go to the homepage of this topic, click here.
<<  <  Page 10 of 11  >
From: ezhilmathiReply 181 of 205Reply
Subject: Contributed Answer/Explanation to Q. 23
   ans would b :-   -22 

Posted at: Wed Dec 1 17:42:57 2010 (GMT)

From: ezhilmathiReply 182 of 205Reply
Subject: Contributed Answer/Explanation to Q. 24
   8

Posted at: Wed Dec 1 17:44:50 2010 (GMT)

From: ezhilmathiReply 183 of 205Reply         View replies (1)
Subject: Contributed Answer/Explanation to Q. 25
   program:
   
   public class Salary
   
   
   {
   
   
      String Name ; String Address; long Phone; String Subject Specialisation
   ; int Monthly Salary ; float Income Tax;
   
   
   public void accept( )
   
   
   {
   
   
   System.out.println("Enter your name, address, phone number, subject
   specialisation, monthly salary in the same order");
   
   
   String n = in.readLine( );
   
   
   String add = in.readLine( );
   
   
   int no = Integer.parseInt ( in.readLine( ) );
   
   
   String sub = in.readLine( );
   
   
   int sal = Integer.parseInt( in.readLine( ));
   
   
   Name = n;
   
   
   Address = add;
   
   
   Phone = no;
   
   
   Subject Specialisation = sub;
   
   
   Monthly Salary = sal;
   
   
   }
   
   
   public void display( )
   
   
   {
   
   
   System.out.println(" Your name is " + Name);
   
   
   System.out.println(" Your address is " + Address);
   
   
   System.out.println(" Your phone number is "+ Phone);
   
   
   System.out.println(" Your specialised subject is " + Subject
   Specialisation); 
   
   
   System.out.println(" Your  monthly salary is"+ Monthly Salary);
   
   
   }
   
   
   public float calc( )
   
   
   { 
   
   
   float anS = 12* Monthly Salary;
   
   
   if ( anS >= 175000 )
   
   
   tax = 0.05* anS;
   
   
   else
   
   
   tax = 0;
   
   
   }
   
   
   public void main( )
   
   
   {
   
   
   Salary obj = new Salary ;
   
   
   float ans = obj.calc( );
   
   
   System.out .println (" The annual tax is " + ans);
   
   
   }
   
   
   }  
   
   
    

Posted at: Wed Dec 1 18:17:23 2010 (GMT)

From: ezhilmathiReply 184 of 205Reply
Subject: Contributed Answer/Explanation to Q. 25
   program:
   
   import java.io*; 
   
   
   public class Salary 
   
   
   { 
   
   
      String Name ; String Address; long Phone; String Subject Specialisation
   ; int Monthly Salary ; float Income Tax; 
   
   
   public void accept( ) 
   
   
   { 
   
   
    InputStreamReader read =  new InputStreamReader( System.in);
   
   
   BufferedReader in = new BufferedReader(read);
   
   
   System.out.println("Enter your name, address, phone number, subject
   specialisation, monthly salary in the same order"); 
   
   
   String n = in.readLine( ); 
   
   
   String add = in.readLine( ); 
   
   
   int no = Integer.parseInt ( in.readLine( ) ); 
   
   
   String sub = in.readLine( ); 
   
   
   int sal = Integer.parseInt( in.readLine( )); 
   
   
   Name = n; 
   
   
   Address = add; 
   
   
   Phone = no; 
   
   
   Subject Specialisation = sub; 
   
   
   Monthly Salary = sal; 
   
   
   } 
   
   
   public void display( ) 
   
   
   { 
   
   
   System.out.println(" Your name is " + Name); 
   
   
   System.out.println(" Your address is " + Address); 
   
   
   System.out.println(" Your phone number is "+ Phone); 
   
   
   System.out.println(" Your specialised subject is " + Subject
   Specialisation);  
   
   
   System.out.println(" Your  monthly salary is"+ Monthly Salary); 
   
   
   
   } 
   
   
   public float calc( ) 
   
   
   { 
   
   
   float anS = 12* Monthly Salary; 
   
   
   if ( anS >= 175000 ) 
   
   
   tax = 0.05* anS; 
   
   
   else 
   
   
   tax = 0; 
   
   
   } 
   
   
   public void main( ) 
   
   
   { 
   
   
   Salary obj = new Salary ; 
   
   
   obj.accept; 
   
   
   obj.display;
   
   
   float ans = obj.calc( ); 
   
   
   System.out .println (" The annual tax is " + ans); 
   
   
   } 
   
   
   }   
   
   
    

Posted at: Wed Dec 1 18:23:52 2010 (GMT)

From: allenpremReply 185 of 205Reply
Subject: abuse
   den y do u accept it jacka#$

Posted at: Thu Dec 2 14:18:53 2010 (GMT)

From: allenpremReply 186 of 205Reply
Subject: Re: Contributed Answer/Explanation to Q. 26
   > go and ask your tution teacher...........
   > 
   > look in the computer book in page 99999
   >
   
   i asked my tuttion teacher she told me to tell u to put ur finger in ur A#$
   u dumF#@$

Posted at: Thu Dec 2 14:20:41 2010 (GMT)

From: harshaktgReply 187 of 205Reply
Subject: Contributed Answer/Explanation to Q. 1
   Internet Applets and Stand Alone Applications
   
   The two types of Java Programming are:-
   
   
	   Internet Applets
	   Stand Alone Applications
   
   
    

Posted at: Wed Dec 15 02:56:29 2010 (GMT)

From: harshaktgReply 188 of 205Reply
Subject: Contributed Answer/Explanation to Q. 4
   The answer is given below in the explanation 
   
   float pie=3.142;
   
   
           or
   
   
   double pie=3.142;

Posted at: Wed Dec 15 02:59:15 2010 (GMT)

From: harshaktgReply 189 of 205Reply
Subject: Contributed Answer/Explanation to Q. 8
   The answer is given below in the explanation
   
   The process of conversion of one data type to another data type, is known as
   type casting or type conversion.

Posted at: Wed Dec 15 03:01:29 2010 (GMT)

From: harshaktgReply 190 of 205Reply
Subject: Contributed Answer/Explanation to Q. 9
   java.lang
   java.lang

Posted at: Wed Dec 15 03:01:55 2010 (GMT)

From: harshaktgReply 191 of 205Reply
Subject: Contributed Answer/Explanation to Q. 10
   import
   import

Posted at: Wed Dec 15 03:02:20 2010 (GMT)

From: jam31Reply 192 of 205Reply
Subject: Contributed Answer/Explanation to Q. 1
   application applets

Posted at: Tue Dec 21 12:11:34 2010 (GMT)

From: zxcvbnm33Reply 193 of 205Reply         View replies (1)
Subject: Contributed Answer/Explanation to Q. 3
   Linear Search :It is used to search an element in a given array.

Posted at: Fri Jan 14 14:22:50 2011 (GMT)

From: zxcvbnm33Reply 194 of 205Reply
Subject: Contributed Answer/Explanation to Q. 3
   Linear Search :It is used to search an element in a given array.Binary
   Search: It is used to search any array for a given element.		        

Posted at: Fri Jan 14 14:24:07 2011 (GMT)

From: zxcvbnm33Reply 195 of 205Reply
Subject: Contributed Answer/Explanation to Q. 27
   So easy!
   class array{void print(int Arr[]){int
   i=0,Sum=0,max=Arr[0],min=Arr[0],len=Arr.length;for(i=0;i<len;i++){if(Arr[
   i]>max)max=Arr[i];if(Arr[i]<min)min=Arr[i];Sum+=Arr[i];}System.out.pri
   ntln("Minimum value :"+min);System.out.println("Maximum value
   :"+max);System.out.println("Sum of the elements :"+Sum);}}

Posted at: Fri Jan 14 14:49:20 2011 (GMT)

From: amishanjulvermaReply 196 of 205Reply
Subject: basuri ke makhan choor
   your vulgarity doest not impresses anbody

Posted at: Fri Jan 14 19:11:36 2011 (GMT)

From: devanshi15Reply 197 of 205Reply
Subject: Contributed Answer/Explanation to Q. 1
   The two types of Java programs are:-

Posted at: Sun Feb 6 07:26:56 2011 (GMT)

From: devanshi15Reply 198 of 205Reply
Subject: Contributed Answer/Explanation to Q. 1
   Java applets and Stand alone applications

Posted at: Sun Feb 6 07:27:42 2011 (GMT)

From: devanshi15Reply 199 of 205Reply
Subject: Contributed Answer/Explanation to Q. 4
   double pie=3.142;

Posted at: Sun Feb 6 08:07:14 2011 (GMT)

From: manasawollaReply 200 of 205Reply         View replies (2)
Subject: Contributed Answer/Explanation to Q. 14
   (income<=1000)?0:12;

Posted at: Mon Feb 14 12:38:50 2011 (GMT)

<<  <  Page 10 of 11  >

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