Question: ACTIVITY Prog1_InputOutput.java 3 input and output di fferent data types 7 import java.util.*; 80 6. 10 public class Prog1_InputOutput{ 11 public static void main (Stringo


ACTIVITY Prog1_InputOutput.java 3 input and output di fferent data types 7 import java.util.*; 80 6. 10 public class Prog1_InputOutput{ 11 public static void main (Stringo arg){ //declare variables 12 13 14 15 16 17 /input output integer 18 Run your program as often as you'd like, before submitting for grading. input values in the first box, then click Run program and observe the pro second box. Develop mode Submit mode MacBook Pro (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 a is 97 LAB 14.1.1: Prog 1: Input & Output ACTIVITY Prog1_InputOutput.java 3 input and output different dato 6. 7 import java.util.; 8. 9. A2145 Enter integer: 4. 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 Semester
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
