How many tokens will be produced by the following Jack code? Do not translate into XML, just count tokens. Jack Code How many tokens are generated? var int x, y, greatest; let x = 3; let y = 5; if (x > y) let greatest = x; { { 314 } else let greatest = y; } Answer = do Output.printInt(greatest); do Output.println();

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter14: Files And Streams
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Question
100%

please help me see how many tokens will be generated

 

How many tokens will be produced by the following Jack code? Do not
translate into XML, just count tokens.
Jack Code
How many tokens are generated?
var int x, y, greatest;
let x = 3;
let y
=
5;
if (x > y)
let greatest = x;
{
{
314
}
else
let greatest
=
y;
}
Answer =
do Output.printInt(greatest);
do Output.println();
Transcribed Image Text:How many tokens will be produced by the following Jack code? Do not translate into XML, just count tokens. Jack Code How many tokens are generated? var int x, y, greatest; let x = 3; let y = 5; if (x > y) let greatest = x; { { 314 } else let greatest = y; } Answer = do Output.printInt(greatest); do Output.println();
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
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
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
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L