class Main { Jack Code function void main() { var String a, b, c; let a = "Aloha"; let b "CS 220"; let c = "Architects"; do Output.printString(a); do Output.println(); do Output.printString(b); do Output.println(); do Output.printString(c); do Output.println(); } } return; Symbol Tables Class Symbol Table name type segment # Subroutine Symbol Table name type segment #

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 14RQ
icon
Related questions
Question

Translate the following Jack code into its variable symbol tables please

class Main {
Jack Code
function void main() {
var String a, b, c;
let a = "Aloha";
let b "CS 220";
let c = "Architects";
do Output.printString(a);
do Output.println();
do Output.printString(b);
do Output.println();
do Output.printString(c);
do Output.println();
}
}
return;
Symbol Tables
Class Symbol Table
name
type
segment
#
Subroutine Symbol Table
name
type
segment
#
Transcribed Image Text:class Main { Jack Code function void main() { var String a, b, c; let a = "Aloha"; let b "CS 220"; let c = "Architects"; do Output.printString(a); do Output.println(); do Output.printString(b); do Output.println(); do Output.printString(c); do Output.println(); } } return; Symbol Tables Class Symbol Table name type segment # Subroutine Symbol Table name type segment #
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
Recommended textbooks for you
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,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning