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]
4 years ago
7

Assume the following rules of associativity and precedence for expressions:

Computers and Technology
1 answer:
Mrrafil [7]4 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
Why do computers need system software?
Marina86 [1]
<span>Computers don't need system software. System software is used to automate many tasks so the user can achieve more. Actually, one of the ideas of computer programming is to avoid needless repetition. The system software will prepare the computer for the user.</span>
5 0
3 years ago
Haniyah drew a beautiful pencil sketch of a scenery. Her computer teacher asked her to convert it into a digital form and post i
Aleksandr-060686 [28]

Scanner.

<em> </em>A <em>scanner</em> is an input device that scans documents such as photographs and pages of text, when a document is scanned, it is converted into a digital format.

4 0
3 years ago
What is the best way to protect against the loss of important files
Lemur [1.5K]
Back them up on a different drive
4 0
3 years ago
1. “Paraan nga dyan, Liza!"<br> A.tae<br> B.utit<br> C.pwet
mariarad [96]

Answer:

B

Explanation:

3 0
3 years ago
Examine the evolution of the World Wide Web (WWW) in terms of the need for a general-purpose markup language. Provide your persp
creativ13 [48]

WWW is used to browse for view the webpage basically content is normally displayed as HTML pages.

In any browser's webpage irrespective of language been used output content display as HTML pages only.

<u>Explanation:</u>

  • In other methods is used XML format where it is opened and closed tag for every word editing XML file is very useful.
  • XML tools are ready is available where end-user can edit or create by for example notepad++ extra
  • It is a language designed to store the data in a specific format and easily process and used by a coding language or web pages.
4 0
3 years ago
Other questions:
  • T in your computer will you use to plug in your camera?
    11·1 answer
  • . A technology professional keeping up-to-date on current developments may find it valuable to
    13·1 answer
  • Dueto working at home, lack of interaction may result in ___________ professionalgrowth.
    14·1 answer
  • You are using the grep command, but it is only searching through files in your immediate home directory. What option enables you
    7·1 answer
  • Click cell i13 and calculate the agent commission using the base cost of the trip and a vlookup function that returns the commis
    9·1 answer
  • HELP ASAP, AND YES I KNOW, WRONG CATEGORY. SORRY!
    7·1 answer
  • Sarah is starting her job at the local ice cream shop. What can Sarah do to make a good impression on her first day of work?
    8·2 answers
  • A brown outline around a frame is an indication of which tool?​
    13·1 answer
  • This is a glitch ? 


 










































    14·1 answer
  • What network security tool, usually included with Kali Linux, allows a user to ping multiple IP addresses
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!