CMSC430 Week 5 Discussion

Question # 00853820 Posted By: wildcraft Updated on: 04/30/2024 03:20 AM Due on: 04/30/2024
Subject Computer Science Topic General Computer Science Tutorials:
Question
Dot Image

CMSC 430

Week 5 Discussion

Contains unread posts

Starts Apr 10

 

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 (Decimal and Hexadecimal), Real and Character literals

· Every arithmetic operator: + - * / % ^ ~

· Every relational operator: = /= > >= < <=

· Every logical operator: &

· A when statement| 

· An if statement

· A switch statement

· A fold statement

· Multiple variable declarations

· Multiple parameter declarations

In addition, your program should be written in a such a way that it tests 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.

Dot Image
Tutorials for this Question
  1. Tutorial # 00849303 Posted By: wildcraft Posted on: 04/30/2024 03:20 AM
    Puchased By: 2
    Tutorial Preview
    The solution of CMSC430 Week 5 Discussion...
    Attachments
    CMSC430_Week_5_Discussion.ZIP (18.96 KB)

Great! We have found the solution of this question!

Whatsapp Lisa