Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What should I write for this? Help me to how to solve this problem. 2.12 Lab 1 - Variables and Printing Lab Instructions 299548.1800616 LAB

image text in transcribed

image text in transcribed

What should I write for this?

Help me to how to solve this problem.

2.12 Lab 1 - Variables and Printing Lab Instructions 299548.1800616 LAB ACTIVITY 2.12. 1: Lab 1 - Variables and Printing 0/5 Variables.java Load default template... * Variables lab for CS 1. * 1 2 3 4 5 6 * In this first lab, you will get familiar with a program's structure, and work with String variables and print statements * * @author YOUR_NAME 8 * @version 202010 9 10 11 12 // STEP one: label class 13 public class Variables 14 15 // STEP two: label the main method this is where program execution starts 16 public static void main(String args[]){ 17 18 Develop mode Submit mode When done developing your program, press the Submit for grading button below. This will submit your program for auto-grading. Load derauit template... 11 12 // STEP one: label class 13 public class Variables 14 14 15 // STEP two: label the main method - this is where program execution starts 16 10 public static void main(String args[]) { 17 17 18 // STEP three: declare a name variable here 10 19 19 20 20 // STEP four: print out the expression "The founder of Java is " without a new line 21 21 22 // STEP five: print out the founder of Java's name variable with a new line 23 24 // STEP six: declare an integer variable initialized with the year that java was founded 25 // Then, print out "Java was founded in " and your variable, followed by a new line. 26 } 27 } Develop mode Submit mode Run your program as often as you'd like, before submitting for grading, Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box Enter program input (optional) The founder of Java is James Gosling Java was founded in 1995 Run program Input (from above) Variables.java (Your program) Output (shown below) Program output displayed here

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions

Question

How do real shocks to the economy affect business cycles?

Answered: 1 week ago

Question

=+Is it possible to operate union-free?

Answered: 1 week ago

Question

=+impact member states and MNEs?

Answered: 1 week ago