Program: import java.util.Scanner; class Arithmetic // Here we are taking class name as Arithmetic { public static void main(String args[]) { int x, y, a,b,c,e; double d; String s; Scanner in = new Scanner(System.in); // here we are scanning input from key board System.out.println(\"Please enter your name >>\"); s = in.nextLine(); System.out.println(\"Please enter an integer >>\"); x = in.nextInt(); System.out.println(\"Please enter another integer >>\"); y = in.nextInt(); System.out.println(\"hey \"+s+\" here are your answers : \"); a = x + y; System.out.println(x+\" + \"+y+\" is \"+a); b= x - y; System.out.println(x+\" - \"+y+\" is \"+b); c = x * y; System.out.println(x+\" * \"+y+\" is \"+c); d = (double)x / (double)y; // Here we are converting integer value in to double System.out.println(x+\" / \"+y+\" is \"+d); e = x%y; System.out.println(x+\" % \"+y+\" is \"+e); } } Output : Please enter your name >> Budda Please enter an integer >> 5 Please enter another integer >> 4 hey Budda here are your answers : 5 + 4 is 9 5 - 4 is 1 5 * 4 is 20 5 / 4 is 1.25 5 % 4 is 1 Solution Program: import java.util.Scanner; class Arithmetic // Here we are taking class name as Arithmetic { public static void main(String args[]) { int x, y, a,b,c,e; double d; String s; Scanner in = new Scanner(System.in); // here we are scanning input from key board System.out.println(\"Please enter your name >>\"); s = in.nextLine(); System.out.println(\"Please enter an integer >>\"); x = in.nextInt(); System.out.println(\"Please enter another integer >>\"); y = in.nextInt(); System.out.println(\"hey \"+s+\" here are your answers : \"); a = x + y; System.out.println(x+\" + \"+y+\" is \"+a); b= x - y; System.out.println(x+\" - \"+y+\" is \"+b); c = x * y; System.out.println(x+\" * \"+y+\" is \"+c); d = (double)x / (double)y; // Here we are converting integer value in to double System.out.println(x+\" / \"+y+\" is \"+d); e = x%y; System.out.println(x+\" % \"+y+\" is \"+e); } } Output : Please enter your name >> Budda Please enter an integer >> 5 Please enter another integer >> 4 hey Budda here are your answers : 5 + 4 is 9 5 - 4 is 1 5 * 4 is 20 5 / 4 is 1.25 5 % 4 is 1.