Provide a program in the target language of our compiler/interpreter that incorporates all elements of the language.
Fantastic news! We've Found the answer you've been seeking!
Question:
Provide a program in the target language of our compiler/interpreter that incorporates all elements of the language. It must include all of the following:
- Integer, Real and Boolean literals
- Every arithmetic operator: + - * / rem **
- Every relational operator: = /= > >= < <=
- Every logical operator: and or not
- An if statement
- A case statement
- A reduce statement
- Multiple variable declarations
- Multiple parameter declarations
In addition, your program should be written in a such a way that it test the associativity and precedence of all operators. It should also include nested statements.
Also provide several sets of input (values for the parameters) to the program, enough so that every line of code within the program is executed at least once. For each input supplied, provide the corresponding output.
Related Book For
Auditing and Assurance services an integrated approach
ISBN: 978-0132575959
14th Edition
Authors: Alvin a. arens, Randal j. elder, Mark s. Beasley
Posted Date: