Question: 14. I Prog 1: Input & Output (1) Input one integer and output the input, the squared, and cubed. (2 pts) Enter Integer: You entered:

14. I Prog 1: Input & Output (1) Input one integer and output the input, the squared, and cubed. (2 pts) Enter Integer: You entered: 4 4 squared is 16 4 cubed is 64 (2) Input a real number and converter the real number to integer, the output boht numbers (2 pts) Enter real number: 5.89 You entered: 5.89 whole number of 5.89 is 5 (3) Input and output String using next() method(2 pts) Enter statement Great Semester! You entered: Great Sementer! (3) Input and output String using nextLine() method(2 pts) Enter statement I love programming! You entered: I love programming! (4) Prompt the user to input a character and output the character and ASCII of the character (2 pts) Enter character You entered: a ASCII number of is 97 ACTIVITY 14.1.1: Prog 1: Input & Output 4110 U Prog1_InputOutput.java Load default template 3 input and output different data types 7 Import java.util.; 10 public class Progl_Input output 12 public static void main(String[] ang)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
