Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

14a-e) We talked about a compiler as a collection of interconnected components,

ID: 3822566 • Letter: 1

Question

14a-e) We talked about a compiler as a collection of interconnected components, each with a specific purpose and a well defined set of inputs & outputs. Below are several language design decisions that could be made. Discuss which components would be affected, or have to be adjusted, to accommodate these language translation properties. You should also explain your answer to provide some justification.     (15pts)

a) Declarations must occur in a block before any statements

b) Keywords can be upper or lower-case

c) Only integer variables can be initialized at declaration time

d) String variables are automatically initialized to empty; all other variables are not initialized; a variable must not be used before it is given a value.

e) A new comparison operator ~~ is added to the language meaning “is approximately”

Explanation / Answer

a) Declarations are unable to exist inside the function,hook,event handler.the declaration should appear ahead any statements.it is utilized to acess the varaiables or functions specified in discrete source files.A discrepancy among the defnitions and statements produces a compilation errors.

b)Key words with upper case is much readable in particular circumstances.but the java is case senstive i.e lower case all the time.A compiler must not intends to second_predict the goal of user.

c) to decrease the noise in programm that restricts the amount of fuctional code.

d) A String varaiable is initialized if you create and give the first value through a strExpr.but when you create a string variable and give without initializer i.e empty string(''').the string varaiable is initialized for particular initial value or for the empty string( "") when we offfer no initial value.

e) it is nothing but the same but not correctly equal for something. mostly utilized for mnathematical functions and shapes.it depends on degree of precesion needed.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote