File Edit Selection View Go Run Terminal Help ○ src 08 EXPLORER J App.java J AssemblyFileParser.java J Instruction.java J Alnstruction.java J CInstruction.java J SymbolTable.java ASM rect.asm J MachineCodeWr ✓ SRC J App.java J Alnstruction.java 1 import java.io.FileNotFoundException; 2 J App.java J AssemblyFileParser.java J Clnstruction.java J Instruction.java J MachineCodeWriter.j... 34569 public class App { try { 7 ASM rect.asm 8 9 J SymbolTable.java 10 11 public static final String PROGRAM_NAME = "rect"; public static void main(String[] args) { } AssemblyFileParser parser = new AssemblyFileParser (PROGRAM_NAME + ".asm"); System.out.println(parser); MachineCodeWriter.writeToBinaryFile(PROGRAM_NAME + '.hack", parser.getParsedAssemblyInstructions()); catch (FileNotFoundException e) { 12 System.err.println(e.getMessage()); 13 14 5 15 } } > OUTLINE > TIMELINE > JAVA PROJECTS O AO AO 73°F Sunny PROBLEMS OUTPUT DEBUG CONSOLE TERMINAL PORTS PS C:\Users\prtty\Downloads\CPPPrograms\JavaAssembler\src> Q Search W ☑ powershell + : B く ☑ Ln 15, Col 2 Spaces: 4 UTF-8 CRLF Java 3:59 PM 11/28/2024
File Edit Selection View Go Run Terminal Help ○ src 08 EXPLORER J App.java J AssemblyFileParser.java J Instruction.java J Alnstruction.java J CInstruction.java J SymbolTable.java ASM rect.asm J MachineCodeWr ✓ SRC J App.java J Alnstruction.java 1 import java.io.FileNotFoundException; 2 J App.java J AssemblyFileParser.java J Clnstruction.java J Instruction.java J MachineCodeWriter.j... 34569 public class App { try { 7 ASM rect.asm 8 9 J SymbolTable.java 10 11 public static final String PROGRAM_NAME = "rect"; public static void main(String[] args) { } AssemblyFileParser parser = new AssemblyFileParser (PROGRAM_NAME + ".asm"); System.out.println(parser); MachineCodeWriter.writeToBinaryFile(PROGRAM_NAME + '.hack", parser.getParsedAssemblyInstructions()); catch (FileNotFoundException e) { 12 System.err.println(e.getMessage()); 13 14 5 15 } } > OUTLINE > TIMELINE > JAVA PROJECTS O AO AO 73°F Sunny PROBLEMS OUTPUT DEBUG CONSOLE TERMINAL PORTS PS C:\Users\prtty\Downloads\CPPPrograms\JavaAssembler\src> Q Search W ☑ powershell + : B く ☑ Ln 15, Col 2 Spaces: 4 UTF-8 CRLF Java 3:59 PM 11/28/2024
Chapter16: Graphics
Section: Chapter Questions
Problem 10PE
Question
What command do I give to compile this project and run App.java
![File Edit Selection View
Go
Run Terminal Help
○ src
08
EXPLORER
J App.java
J AssemblyFileParser.java
J Instruction.java
J Alnstruction.java
J CInstruction.java
J SymbolTable.java
ASM rect.asm
J MachineCodeWr
✓ SRC
J App.java
J Alnstruction.java
1
import java.io.FileNotFoundException;
2
J App.java
J AssemblyFileParser.java
J Clnstruction.java
J Instruction.java
J MachineCodeWriter.j...
34569
public class App {
try {
7
ASM rect.asm
8
9
J SymbolTable.java
10
11
public static final String PROGRAM_NAME = "rect";
public static void main(String[] args) {
}
AssemblyFileParser parser = new AssemblyFileParser (PROGRAM_NAME + ".asm");
System.out.println(parser);
MachineCodeWriter.writeToBinaryFile(PROGRAM_NAME + '.hack", parser.getParsedAssemblyInstructions());
catch (FileNotFoundException e) {
12
System.err.println(e.getMessage());
13
14
5
15
}
}
> OUTLINE
> TIMELINE
> JAVA PROJECTS
O AO AO
73°F
Sunny
PROBLEMS
OUTPUT
DEBUG CONSOLE
TERMINAL
PORTS
PS C:\Users\prtty\Downloads\CPPPrograms\JavaAssembler\src>
Q Search
W
☑ powershell +
:
B
く
☑
Ln 15, Col 2 Spaces: 4
UTF-8
CRLF
Java
3:59 PM
11/28/2024](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F46c0fb16-724b-4726-818c-9156075ac6cc%2F79aa5355-a779-4f49-9727-b2f1f7f0537a%2F6s3d16v_processed.png&w=3840&q=75)
Transcribed Image Text:File Edit Selection View
Go
Run Terminal Help
○ src
08
EXPLORER
J App.java
J AssemblyFileParser.java
J Instruction.java
J Alnstruction.java
J CInstruction.java
J SymbolTable.java
ASM rect.asm
J MachineCodeWr
✓ SRC
J App.java
J Alnstruction.java
1
import java.io.FileNotFoundException;
2
J App.java
J AssemblyFileParser.java
J Clnstruction.java
J Instruction.java
J MachineCodeWriter.j...
34569
public class App {
try {
7
ASM rect.asm
8
9
J SymbolTable.java
10
11
public static final String PROGRAM_NAME = "rect";
public static void main(String[] args) {
}
AssemblyFileParser parser = new AssemblyFileParser (PROGRAM_NAME + ".asm");
System.out.println(parser);
MachineCodeWriter.writeToBinaryFile(PROGRAM_NAME + '.hack", parser.getParsedAssemblyInstructions());
catch (FileNotFoundException e) {
12
System.err.println(e.getMessage());
13
14
5
15
}
}
> OUTLINE
> TIMELINE
> JAVA PROJECTS
O AO AO
73°F
Sunny
PROBLEMS
OUTPUT
DEBUG CONSOLE
TERMINAL
PORTS
PS C:\Users\prtty\Downloads\CPPPrograms\JavaAssembler\src>
Q Search
W
☑ powershell +
:
B
く
☑
Ln 15, Col 2 Spaces: 4
UTF-8
CRLF
Java
3:59 PM
11/28/2024
AI-Generated Solution
Unlock instant AI solutions
Tap the button
to generate a solution
Recommended textbooks for you

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage