Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

This question was created from Zybooks Activity 1.13.1

Question

This question was created from Zybooks Activity 1.13.1

23492967-151133.jpeg

Need the code for last part in java. This is as far in the code I have gotten: import java.util.Scanner; public class OutputWithVars { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); int userNum;//allocates memory to the variable userNum System.out.println(“Enter integer: “);//This prompts the user to enter an integer, I entered 4 userNum = scnr.nextInt();//This stores the integer in the allocated memory System.out.println(“You entered: “+userNum);//Prints on the screen the value entered System.out.println(userNum+” squared is “+ (userNum*userNum));//Prints on the screen the square value System.out.println(“And “+userNum+” cubed is “+(userNum*userNum*userNum)+”!!”);//Prints on the screeen the cubed value

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"