Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The purpose of this question is to give you practice in copying, compiling, and running a Java program in linux. Do the following: 1. remotely

image text in transcribedimage text in transcribed

The purpose of this question is to give you practice in copying, compiling, and running a Java program in linux. Do the following: 1. remotely connect to your CS Lab account 2. move to a directory that you use for assignments for this course, or make one 3. copy the file H1Question from the course directory to your current directory with the command: cp /p/course/cs400-kuemmel/public/homework1/H1Question.java The dot at the end of the this command directs linux to place a copy in your current directory 4. You can view the file in your current directory with the command cat H1Question.java It should show you a short java program 5. Compile the program with the command javac H1Question.java There should be no compiler errors 6. Run the program with the prompt java H1Question pizza It should show the message "The answer is this integer: 4226" 7 Run the program with the prompt java H1Question badger What integer is shown? Enter this integer as your answer. Note: This question is from a test bank....if you take this quiz again you will see the same question with a different key word. The purpose of this question is to give you practice in copying, compiling, and running a Java program in linux. Do the following: 1. remotely connect to your CS Lab account 2. move to a directory that you use for assignments for this course, or make one 3. copy the file H1Question from the course directory to your current directory with the command: cp /p/course/cs400-kuemmel/public/homework1/H1Question.java The dot at the end of the this command directs linux to place a copy in your current directory 4. You can view the file in your current directory with the command cat H1Question.java It should show you a short java program 5. Compile the program with the command javac H1Question.java There should be no compiler errors 6. Run the program with the prompt java H1Question pizza It should show the message "The answer is this integer: 4226" 7 Run the program with the prompt java H1Question badger What integer is shown? Enter this integer as your answer. Note: This question is from a test bank....if you take this quiz again you will see the same question with a different key word

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions