Ch. 1 Windows Command Prompt HW

profileamanali786
21840525.pdf

© 2022 Linda Shepherd 1 © 2015 Deitel, Paul and Harvey, Java How to Program 10th Edition Late Objects Version, Pearson Education

Inc.: Tic-Tac-Toe, Painter, Ch 1 pp 22-25.

IS 2063 Chapter 1: Using Windows Command Prompt to Run Java Programs Purpose: To familiarize you with how to execute a Java application from the Windows Command Prompt. Prep Work: 1. You should’ve already installed DrJava and Amazon Corretto 8 on your own computer per

instructions for Software Option 1 given to you in CHAPTER COURSEWORK >> First Things First (Getting Started).

2. Otherwise, UTSA IT has installed DrJava and Amazon Corretto 8 on UTSA’s VDI (Virtual Desktop Infrastructure). Please refer to Software Option 2 in CHAPTER COURSEWORK >> First Things First (Getting Started).

3. Download the zip file posted with these instructions. Save it to a folder for chapter 1. Extract its content and review the file on Command Prompt commands and how to change directories in Command Prompt. All you have to do is point to the zip file, right click, and "Extract Here". During the extraction make sure your files are not nested within multiple folders of the same name.

Instructions: 1. Open a Word document saved with your LastNameFirstInitialYourSecNoCmdPrompt. Example:

JonesE001CmdPrompt. Create 2 sections. One called TicTacToeTest with screenshots for running the program and similarly for Painter.

2. TicTacToeTest Screenshots Section a. In Command Prompt show that you can navigate to the correct drive, then the correct folder

containing the program, and type the command to run the program, but don’t hit enter just yet. i. Screenshot the navigation commands in the Command Prompt window and insert in the

section of the Word document for TicTacToeTest. ii. Now, hit enter to Run the program.

b. First Move: Keep in mind that the computing begins counting at 0, so 0 is row or column 1; 1 is row or column 2; 2 is row or column 3. i. Player 1 marks row 3, column 2. ii. Player 2 marks row 1, column 3. iii. Screenshot each player’s move including the row and column entries, insert into the Word

document. c. Second Move:

i. Player 1 marks row 2, column 2. ii. Player 2 marks row 1, column 2. iii. Screenshot each player’s move including the row and column entries, insert into the Word

document 3. Painter Screenshots Section

a. Go to the Deitel Ch 1 PDF in the attached zip file for pp 22-25 and follow the instructions from numbers 4 to 9.

b. Screenshot the Painter window (must include the title bar with the app name, dropdown lists and buttons) showing each step of how you draw the face per the instructions in 4a and insert in the section of the Word document for Painter.

© 2022 Linda Shepherd 2 © 2015 Deitel, Paul and Harvey, Java How to Program 10th Edition Late Objects Version, Pearson Education

Inc.: Tic-Tac-Toe, Painter, Ch 1 pp 22-25.

Submission Requirements: Upload your Word document with the screenshots to Blackboard by the due date. Files: • Zip file content:

o Tic-Tac-Toe and painter folders that have the programs you'll be running, and a o document called Command Prompt Commands and Changing Directories.pdf that

instructs you on how to run Windows Command Prompt, navigate to drives and directories, and compile and run your Java programs, and

o Deitel Ch 1 PP 22-25.pdf on running the Painter program.