0% found this document useful (0 votes)
30 views1 page

Program L

java

Uploaded by

kaushal197344
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views1 page

Program L

java

Uploaded by

kaushal197344
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

RELATED TO FIRST TYPE OF FUNCTION:-

[Link] a class that reads necessary information and prints the name of the applicant, annual income, loan amount
sanctioned and the category of house to be allotted on the following basis for House Bank that sanctions loan to the
employees on the following basis, using void input(),void compute() and void display().Call all the above functions in
main method FOR 30 PEOPLE.
Annual Loan Amount Category of
Income Eligible House
Upto 1,50,000 150% of Annual LIG
Income
Upto 5,00,000 200% of Annual MIG
Income
Above Rs. 300% of Annual HIG
5,00,000 Income

RELATED TO SECOND TYPE OF FUNCTION:-

[Link] a class area which has the following functions:-


void Calculate(int,int,double)-Which calculates the area of circle and rectangle after taking length, breadth of
rectangle and radius of circle as parameter.
void Display()-To display the area of rectangle and circle.
void Main() –To invoke all the above functions

2. Design a class Number with the following functions:


void Special(int) to print if the given number is special number.[145,1!+4!+5!=145]
void DecimalToBinary(int) that prints Binary Equivalent of a decimal integer.
void Palindrome(int) that checks and prints if the number if Palindrome or not.[131 reverse=131]
Call all the above functions in void main() by passing required parameters after taking as input.

3. Design a class Number1 with the following functions:


void neon(int) to print if the given number is neon.[9 square of 9 81 8+1=9]
void armstrong(int ) that prints if the given number is armstrong.[153->13+53+33=153]
void automorphic(int) the checks and prints if the number is automorphic or not.[5->5 2=25]
Call all the above functions in void main() by passing required parameters after taking as input.

4. Design a class Number2 with the following functions:


void evil(int) to print if the given number is evil or not.[even number of 1’s in binary equivalent]
void odious(int ) to print if the given number is odious or not.[ odd number of 1’s in binary equivalent]
void disarium(int) the checks and prints if the number is disarium or not.[135=1 1+32+53=135]
Call all the above functions in void main() by passing required parameters after taking as input.

5. Design a class Number3 with the following functions:


void emrip(int) to print if the given number is emrip or not.[13 is prime and it’s reverse 31 is prime]
void palprime(int ) to print if the given number is palprime or not.[ 11 is prime and palindrome also]
void Call all the above functions in void main() by passing required parameters after taking as input.

You might also like