1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
kondor19780726 [428]
3 years ago
7

Assume the following rules of associativity and precedence for expressions:

Computers and Technology
1 answer:
Mrrafil [7]3 years ago
6 0

Answer:

The answers are explained below.

Explanation:

a.) * and + has same priority so then: ((a * b) - (1+c))

b.) For (++c++) = ((++c)++) , prefix has high precedence.

In remaining operators * and mod has same precedence So evaluate from left to right. ((a * (b - 1)) / (((++c)++) mod d))

There for order of evaluation: ((a * (b - 1)) / (((++c)++) mod d))

c.) for (d * e / a - 3), * has high priority so ((d *e) / a - 3). Now / and - have same priority so then see association from left to right. so

And & has more priority than / so then order of evaluation: ((a - b) / (c & (((d * e) / a) - 3))

d.) In question d, unary minus(-) has high priority then, - has high priority, then and has high priority and then or has low priority. So then order of evaluation: ((-a) or ((c = d) and e))

e.) Here > and <= has high and same precedence then ( a > b) xor c or (d <= 17)

now xor and or has same priority so associates from left to right.

order of evaluation is : ( ((a > b) xor c) or (d <= 17))

f.) uniary minus(-) has high precedence than + so order of evaluation is : ((-a) + b)

Rewriting the expression where there are no precedence rues and the statement is given right to left associativity:

a. c + 1 - b * a

b. d mod (++c++) / (1 - b) * b

c. (3 - a / e * d) & c / (b - a)

d. e and d = c or -a

e. 17 <= d or c xor b > a

f. b + -a

You might be interested in
Diagnosing is solving the problem, and troubleshooting is figuring out what the problem is.
Snowcat [4.5K]

No it's actually the opposite. so False.

3 0
3 years ago
1. List 2 items that are included as administrative information in a health record.
sleet_krkn [62]

Administrative, Billing data and progress notes. Also Patient Demographics.

6 0
4 years ago
Name the error that has happened in the binary addition 0¹01+111=1000​
Bumek [7]

Answer:

overflow error

Explanation:

Sometimes, when adding two binary numbers we can end up with an extra digit that doesn't fit.

8 0
3 years ago
Read 2 more answers
In the revised version of the library system with Book and Periodical, Question 16 options: a) Book is a subclass of Periodical
maxonik [38]

Answer:

c. Book and Periodical are subclasses of LoanableItem

Explanation:

Books are kept in library in a periodical manner. Both classes are not superior, they are subclasses of LoanableItem. Library uses common guide which makes it easy to find a book.

3 0
3 years ago
How to fix please my grandmas computer isn’t working I really need help
Alexxandr [17]

Answer:Grandma, I'm out of town,” isn't an excuse anymore. ... laptop at work, we're sorry to break the news… it's probably you. As you begrudgingly prepare for the next time someone asks for your ... Once that's done, click Turn On to enable access: just give the computer a name and enter a PIN code for extra ...

Explanation:

6 0
3 years ago
Other questions:
  • Go to the Creamy Ice Corporation passage on the next page. Insert the trademark sign after the word “Corporation'' in the first
    9·1 answer
  • Helllllp: Virtual private networks require a secure remote connection.<br> True or False?
    10·2 answers
  • Given two variables, is Empty of type boolean, indicating whether a class roster is empty or not, and number Of Credits of type
    10·1 answer
  • Intellectual ______ is the legal term for ownership of intangible assets such as ideas, art, music, movies, and software.
    13·2 answers
  • 1. What makes discrimination different from harassment? (Don't give me definitions.)
    5·1 answer
  • What will be result of below if statement.
    13·1 answer
  • Drag each label to the correct location on the image.
    7·1 answer
  • How many constructors are there in the following class declaration?class CashRegister { public: CashRegister(); CashRegister(int
    8·1 answer
  • Why should you try out a camera bag before taking it on a vacation?
    7·2 answers
  • Why does my roku tv keep disconnecting from the internet.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!