Question: Assgn1: Learning java integer variable, String and how to display the program output to output console 1) Let's modify the Module0 File Edit View

Assgn1: Learning java integer variable, String and how to display the programoutput to output console 1) Let's modify the Module0 File Edit ViewBuild Project Settings Tools Window Help XST public class Tast_compilec /21: edasgifirst Juni Recl Spri assi assi assi assi assi DD+H&U +P public

Assgn1: Learning java integer variable, String and how to display the program output to output console 1) Let's modify the Module0 File Edit View Build Project Settings Tools Window Help XST public class Tast_compilec /21: edasgi first Juni Recl Spri assi assi assi assi assi DD+H&U +P public static void main(String 11 orgal System.out.println("o inatalled JIN AND IS V INFO: What is String & int variables? String is a sequence of characters started with " and ended with ". Example: "You installed JDK & jGrasp IDE correctly!" int is a data type that stores an integer number on computer memory at run time. Example int x=20; Mixing String and variables by using operator +: In order to display to output mixing String and variables by using + operator A) On jGrasp IDE click on File/New/Java, Copy an past or type in the following code public class Label_01 //It is case sensitive { public static void main(String[] args) { int x =20; System.out.println("You installed JDK & jGrasp IDE correctly!" + x); B) Click on jgrasp IDE file menu File/Save and save program name Lab01_01 C) Compile, be sure you do not get compilation error, if you have the above program, you should not get compilation error! Run your program D)- What is the output of the above program? Answer: 2) What is the output of the following program, after compile/run. public class Label_02 //It is case sensitive { public static void main(String[] args) { System.out.println("Programming is great fun!"); System.out.println("Programming is great fun!"); 2)- What is the output of the above program? Answer ?? ?? ?? 3)- After watching videos clip and reading your book and understanding String, integer, variable and identifier, and other program component of programming so far. What is run-time output of following problem. Write the following program compiler/run to what is the value 3 The variable x starts with the value 0. The variable y starts with the value 5. Add I to x. Add I to y Add x and y, and store the result in y. Display the vaue in y on the screen. public class Lab01_03 ? public static voied main(String[] args) int x=0; int y-5; y=y+1; System.out.println("the value y is "y): What is the value of y: What is program name of the above program? Answer: 4 The variable a starts with the value 10. public class Lab01_04 t The variable b starts with the value 2. The variable c starts with the value 4. Store the value of a times b in a. Store the value of b time's c in c. Add a and c, and store the result in b. Display the vaue in b on the screen. public static voied main(String[] args) ( int a-0; int b=2 int c-4; a-a*b; c=b*c: b=a+c; System.out.println("the value b is "+b); On the above program, what is the output of the above program, after compile/run Answer: What is program name of the above program? Answer:__ After you typed, compile and run the Lab01-01 to Lab01_04, take the screenshot of each run time output and submit your work for grading ??

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!