Posts

ISBN Number in JAVA [Updated]

Program to Check ISBN Number ISBN Number :  ISBN stands for International Standard Book Number. It is a unique numeric book identifier which is printed on every book. The ISBN is based upon  10 Digit Code . The ISBN Number is valid if :- (10  X  Digit 1  +  9  X  Digit 2  +  8  X  Digit 3  +  7  X  Digit 4 + 6  X  Digit 5  +  5  X  Digit 6  +  4  X  Digit 7  +  3  X  Digit 8 + 2  X  Digit 9  +  1  X  Digit 10) is Divisible by  11. Example: ISBN   : 1401601499 Sum   : 10*1 + 9*4 + 8*0 + 7*1 + 6*6 + 5*0 + 4*1 + 3*4 + 2*9 + 1*9 = 132 132 is divisible by 11 Output : Correct ISBN number. Algorithm and Program given below  :-

ISBN Number in JAVA for ICSE/ISC

ICSE/ISC Program to Check ISBN Number ISBN Number : ISBN stands for International Standard Book Number. It is a unique numeric book identifier which is printed on every book. The ISBN is based upon 10 Digit Code . The ISBN Number is valid if :- (1 X Digit 1 + 2 X Digit 2 + 3 X Digit 3 + 4 X Digit 4 + 5 X Digit 5 + 6 X Digit 6 + 7 X Digit 7 + 8 X Digit 8 + 9 X Digit 9 + 10 X Digit 10) is Divisible by 11. Example: ISBN : 1401601499 Sum : 1*1 + 2*4 + 3*0 + 4*1 + 5*6 + 6*0 + 7*1 + 8*4 + 9*9 + 10*9 = 253 253 is divisible by 11 Output : Correct ISBN number. Algorithm and Program given below :-

Happy Number in JAVA

Image
Happy Number Happy Number : A Happy Number is defined as : Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1. Example :- Input                     : 49 Output                 : It is a Happy Number Input                     : 4 Output                 : It is not a Happy Number Algorithm, Program and Video Link given below :-

Tri-Automorphic Number in JAVA

Tri-Automorphic Number Tri-Automorphic Number : A number is called Tri-Automorphic number if the last digits of 3 times the square of the number is equal to the number itself. Or A number ‘n’ is called Tri-Automorphic if ‘3n 2 ’ ends in ‘n’. Example :- Input      : 5 Sqaure    : 3 X (5 X 5) = 75 Output    : It is a Tri-Automorphic Number Input      : 667 Sqaure    : 3 X 667 X 667 = 1334667 Output    : It is a Tri-Automorphic Number   Input      : 12 Square    : 3 X 12 X 12 = 432 Output    : It is not a Tri-Automorphic Number Algorithm and Program given below :-

Trimorphic Number in JAVA

Trimorphic Number Trimorphic Number : A number is called Trimorphic Number if and only if its cube ends in the same digits as the number itself.  Or  A number ‘n’ is called Trimorphic if ‘n^3’ ends in ‘n’  Example :- Input : 5  Cube : 5 X 5 X 5 = 625  Output : It is Trimorphic Number  Input : 49  Cube : 49 X 49 X 49 = 117649  Output : It is a Trimorphic Number  Input : 7  Cube : 7 X 7 X 7 = 343  Output : It is not a Trimorphic Number   Algorithm and Program given below :-

SuperPalindrome Number in JAVA

Super Palindrome Number Super Palindrome Number : A Super Palindrome Number is a Palindrome Number whose square is also Palindrome. Example: Input         : 11 Square      : 11 X 11 = 121 Output     : It is a Super Palindrome Number Input         : 22 Square      : 22 X 22 = 484 Output     : It is a Super Palindrome Number Input         : 44 Square      : 44 X 44 = 1936 Output     : It is not a Super Palindrome Number   Algorithm and Program given below :-

Tech Number in JAVA

Image
Tech Number Tech Number : A Tech Number has even number of digits. If the number is split into two equal halves. then the square of the sum of these halves is equal to the number itself. Example: Input                  : 3025 Total Digits       : 4 1 st Half              : 30 2 nd Half             : 25 Sum                   : 30 + 25 = 55 Square               : 55 X 55 = 3025 Output               : It is a Tech Number Input                ...