$25.00 Java Programming
- From Computer-Science: Object-Oriented-Programming , Computer-Science: Object-Oriented-Programming
- Closed, but you can still post tutorials
- Due on Sep. 15, 2009
- Asked on Sep 12, 2009 at 4:26:35PM
Q:You are to write a program that reads a positive integer from the keyboard and performs the following :
- Finds and prints its least significant digit.
- Finds and prints its most significant digit.
- Finds and prints its smallest digit
- Finds and prints its largest digit.
- Checks to see whether the input integer is a prime number and prints the result.
- Find and print its Octal representation. (You have to find Octal by deviding the number by 8, like using math instead of using formula) Print the octal number
- Checks to see whether the input integer is a palindrome and print the result .
- Computes number of cases processed by the program and prints the result.
As long as the user desires to repeat the above computation, your program shold ask for another integer and print out the results. At the end of theprogram (when the suer decides to quit), your program should print out the number of cases during that run.
You should use self –contained methods to do the subtasks in your program.
Example:
Input the Number: 3456
Output:
Least significant digit is 6
Most significant digit is 3
Smallest number is 3
Largest digit is 6
…………..
………..
Notes: I think, you have to break the integer into single digit and then create int array using %10 .



