Can somebody please explain to me how to do this and submit it? 1.12 Warm up: He
ID: 3917577 • Letter: C
Question
Can somebody please explain to me how to do this and submit it?
1.12 Warm up: Hello world (Java)
This zyLab activity is intended for students to prepare for a larger programming assignment. Warm up exercises are typically simpler and worth fewer points than a full programming assignment. Warm up exercises are ideally suited for an in-person scheduled lab meeting or as self-practice. The last section provides a full programming assignment.
For each of the following steps, end the program's output with a newline.
(1) Write a program that outputs the following. (Submit for 1 point).
(2) Update to output the following. (Submit again for 1 more point, so 2 points total).
(3) Finally, update to output the following. End with a newline. (Submit again for 1 more point, so 3 points total).
Explanation / Answer
import java.util.*;
import java.lang.*;
class Helloworld
{
public static void main(String args[])
{
System.out.println("Hello, World!");
}
}
Output:
Hello world!
Submit this first program 1 .
2)
import java.util.*;
import java.lang.*;
class Helloworld
{
public static void main(String args[])
{
System.out.println("Hello, World!");
System.out.println("How are you?");
}
}
Output:
Hello world!
How are you?
Submit this first program 2.
3)
import java.util.*;
import java.lang.*;
class Helloworld
{
public static void main(String args[])
{
System.out.println("Hello, World!");
System.out.println("How are you?");
System.out.println("(I'm fine)");
}
}
Output:
Hello world!
How are you?
(I'm fine)
Submit this first program 3.
Thanks have a great day.