Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Expected Output - Use these values to check your program?. 1 2 3 4 5 12 13 14 15 Number Output 1 2 SNAP 4

image text in transcribed

image text in transcribed

Expected Output - Use these values to check your program?. 1 2 3 4 5 12 13 14 15 Number Output 1 2 SNAP 4 POP SNAP 13 14 SNAPPOP Create a batch file called build.bat. Complete the following tasks in the batch file: 1. Create command line variables for the required folders (relative to the main project folder). 2. Add the JDK bin folder to the PATH. 3. Use javac to compile the code found in the src folder and output to the bin folder. Hint: use the variables you created. 4. Use java to run the code in the bin folder. 5. Use javap to decompile the class file in the bin folder and save the output to a file called ByteCode.txt. The ByteCode.txt file should be placed in the docs folder. Alternate arrangements for exceptional circumstances will been posted on eve 2 These are not all values! Page 1 of 3 Computer Science 2A Practical Assignment 00 2021-02-16 Bonus Create a separate project and place your SnapPop program into the acsse.csc2a package. Sub- mit the bonus project as a separate zipfile with the practical number as POO_B. Marksheet 1. Submission (a) Correct naming (b) Correct folders (c) Correct files in folders [01] [01] [01] 2. Batch file (a) Variables (b) JDK in PATH (c) Compilation command (d) Execution command (e) Bytecode command [03] [03] [02] [02] [02] 3. Correct execution [15] 4. Packages [05 (bonus)] Good coding practices include a proper coding convention and a good use of documentation. Marks will be deducted if these are not present. Every submission must include a batch file. The reminder page includes details for submission. Please ensure that ALL submissions follow the guidelines. The reminder page can be found on the last page of this practical. This practical aims to familiarise you with the Java Development Kit (JDK) and basic Java. Create a SnapPop class. The class loops through numbers from 1 to 30 (inclusive) and print out the number unless one of the following conditions occur: If the number is divisible by 3 output SNAP . If the number is divisible by 5 output POP If the number is divisible by 3 and 5 output SNAPPOP Expected Output - Use these values to check your program?. 15 Number Output 1 1 2 2 3 SNAP 4 4 5 POP 12 SNAP 13 13 14 14 SNAPPOP Create a batch file called build.bat. Complete the following tasks in the batch file: 1. Create command line variables for the required folders (relative to the main project folder). 2. Add the JDK bin folder to the PATH. 3. Use javac to compile the code found in the src folder and output to the bin folder. Hint: use the variables you created. 4. Use java to run the code in the bin folder. 5. Use javap to decompile the class file in the bin folder and save the output to a file called ByteCode.txt. The Bytecode.txt file should be placed in the docs folder. Alternate arrangements for exceptional circumstances will been posted on eve 2These are not all values! Page 1 of 3 Expected Output - Use these values to check your program?. 1 2 3 4 5 12 13 14 15 Number Output 1 2 SNAP 4 POP SNAP 13 14 SNAPPOP Create a batch file called build.bat. Complete the following tasks in the batch file: 1. Create command line variables for the required folders (relative to the main project folder). 2. Add the JDK bin folder to the PATH. 3. Use javac to compile the code found in the src folder and output to the bin folder. Hint: use the variables you created. 4. Use java to run the code in the bin folder. 5. Use javap to decompile the class file in the bin folder and save the output to a file called ByteCode.txt. The ByteCode.txt file should be placed in the docs folder. Alternate arrangements for exceptional circumstances will been posted on eve 2 These are not all values! Page 1 of 3 Computer Science 2A Practical Assignment 00 2021-02-16 Bonus Create a separate project and place your SnapPop program into the acsse.csc2a package. Sub- mit the bonus project as a separate zipfile with the practical number as POO_B. Marksheet 1. Submission (a) Correct naming (b) Correct folders (c) Correct files in folders [01] [01] [01] 2. Batch file (a) Variables (b) JDK in PATH (c) Compilation command (d) Execution command (e) Bytecode command [03] [03] [02] [02] [02] 3. Correct execution [15] 4. Packages [05 (bonus)] Good coding practices include a proper coding convention and a good use of documentation. Marks will be deducted if these are not present. Every submission must include a batch file. The reminder page includes details for submission. Please ensure that ALL submissions follow the guidelines. The reminder page can be found on the last page of this practical. This practical aims to familiarise you with the Java Development Kit (JDK) and basic Java. Create a SnapPop class. The class loops through numbers from 1 to 30 (inclusive) and print out the number unless one of the following conditions occur: If the number is divisible by 3 output SNAP . If the number is divisible by 5 output POP If the number is divisible by 3 and 5 output SNAPPOP Expected Output - Use these values to check your program?. 15 Number Output 1 1 2 2 3 SNAP 4 4 5 POP 12 SNAP 13 13 14 14 SNAPPOP Create a batch file called build.bat. Complete the following tasks in the batch file: 1. Create command line variables for the required folders (relative to the main project folder). 2. Add the JDK bin folder to the PATH. 3. Use javac to compile the code found in the src folder and output to the bin folder. Hint: use the variables you created. 4. Use java to run the code in the bin folder. 5. Use javap to decompile the class file in the bin folder and save the output to a file called ByteCode.txt. The Bytecode.txt file should be placed in the docs folder. Alternate arrangements for exceptional circumstances will been posted on eve 2These are not all values! Page 1 of 3

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

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions