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

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
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
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
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,