Question: Detailed Instructions For the program assigned to you or your group, review the code and answer questions 1 - 8 below. Then paste the program

Detailed Instructions For the program assigned to you or your group, review the code and answer questions 1-8 below. Then paste the program into jDoodle, run the program by pressing the Execute button, and answer question 9.1. What variables are declared? List each variables name and type. 2. Are any of the variables also attributes? List each attribute and its class. (Hint: Remember attributes are variables declared inside a class but not inside a method.)3. What constants are declared? List each constants name and type. 4. What classes are declared? List each class name. 5. What methods are declared? List each methods name. 6. For each method, what type of value/object does it return? 7. Are there any method calls? List the statement containing each call. 8. Does the program output anything to the user? (Hint: look for System.out.print() or System.out.println().)9. Paste the program into the online compiler and run it. What does it do?(Hint: be sure to turn on the Interactive switch in jDoodle.)
import java.util.Scanner;
public class PalindromeNumber
{
int idNumber=38592;
public static void main(String arg[])
{
int n,t,s;
Scanner sc=new Scanner(System.in);
System.out.println("Enter any number ");
n=sc.nextInt();
t=n;
s=palindromeOrNot(n);
if(s==t)
System.out.println(t+" is a palindrome number ");
else
System.out.println(t+" is not a palindrome number ");
}
static int palindromeOrNot(int num )
{
int sum=0,r;
while(num!=0)
{
r=num%10;
sum=(sum*10)+r;
num/=10;
}
return sum;
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!