Need code for java Practical programme,
July 8, 2009 at 4:18 AM
2. Write a JAVA program to get 2 numbers from the user until the first number is more than 10 bigger than the second number. For each pair of numbers entered, tell which one is bigger (first or second...) If the 2 numbers are the same, get another number from the user and if that number is also the same, tell the user that fact. When the loop is exited, give the average of all the first numbers. Tell what percent of the time the first number was bigger. Print the highest second number. Print how many times the 2 numbers were the same. Print how many times the difference between the 2 numbers was even. 3. Write a Java program to check if the given number is prime or not. Also display the sum value of individual digit. 4. Write a java program that checks whether a given NUMBER is palindrome or not. Also display the sum and multiplication value of individual digit. 5. Write a java Program for given as an integer, we need to print the equivalent English on a cheque,eg: if the given amount is 69, the output should be; 'sixty nine.