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
vlada-n [284]
3 years ago
13

100pts: Convert the following expression into postfix notation: 4*(5/2^3-4)+4*(9-2)

Mathematics
2 answers:
choli [55]3 years ago
7 0

Answer:

  4 5 2 3 ^ / 4 - × 4 9 2 - × +

Step-by-step explanation:

Start by putting a left parenthesis "(" on the operator stack, and adding a right parenthesis ")" to the end of the input expression.

<u>Conversion algorithm</u>

Copy any operands to the output string until an operator is encountered. Pop operators from the operator stack to the output string if they have equal or higher precedence, then put the operator encountered onto the operator stack. When a right parenthesis is encountered, pop operators from the operator stack to the output string until a left parenthesis is found. Drop that left parenthesis.

__

<u>Given example</u>

For the given expression, we copy 4 and 5 to the output, push / to the operator stack, copy 2 to the output, push ^ to the operator stack, and copy 3 to the output. At this point, the output is ...

  4 5 2 3

and the operator stack is

  ( * ( / ^ . . . . . top item is on the right

When we encounter the - sign, we write the ^ and / operators to the output string and push - to the operator stack. At this point, the state is ...

  output: 4 5 2 3 ^ /   operator stack: ( * ( -

Next, we copy 4 to the output. When we encounter the right parenthesis, we copy - to the output and pop the ( from the operator stack.

The next input symbol, +, is lower precedence than the remaining * on the operator stack, so we output the * and push the +. Now we have ...

  output: 4 5 2 3 ^ / 4 - *   operator stack: ( +

The output string so far completes the evaluation of the first term of the input expression.

Now, we copy out 4, push * and (, copy out 9, push -, copy out 2. The right parenthesis triggers the popping of the - to the output, and the final right parenthesis that we added at the start pops the * and + from the operator stack. Our final output is ...

  4 5 2 3 ^ / 4 - × 4 9 2 - × +

_____

The result is 14.5.

Alex Ar [27]3 years ago
6 0

Answer:

14.5.

Step-by-step explanation:

<em>HOPE</em><em> </em><em>THIS</em><em> </em><em>HELPS</em><em> </em><em>YOU</em><em> </em>

<em>❤</em><em> </em><em>❤</em><em> </em><em>❤</em><em> </em><em>❤</em><em> </em><em>❤</em><em> </em><em>❤</em><em> </em><em>❤</em><em> </em><em>❤</em><em> </em>

You might be interested in
What is the coefficient of x after simplifying the expression?<br> 7y + 4x + 4 - 2x +8
Zarrin [17]

Answer:

The coefficient of x is 2.

Step-by-step explanation:

1) Add the numbers

7y + 4x + 4 - 2x + 8

7y + 4x + 12 - 2x

2) Combine like terms

7y + 4x + 12 - 2x

7y + 2x + 12

3) Rearrange items

7y + 2x + 12

2x + 7y + 12


7 0
2 years ago
The train ride at the zoo covers a distance of 2 1/2 miles in 1/3 of an hour. How many miles per hour does the train go? How far
Gala2k [10]
7.5 mph in 3 hours the train can travel 22.5 miles. Take 2.5 and times it by 3 to get the mph, then multiply that answer by 3 again to get the total miles in 3 hours
6 0
3 years ago
When angles complementary,the sum of their mesures is 90 degrees. Two complementary angles have measures of 2x-10 degrees and 3x
kykrilka [37]

Answer:

34 degrees and 56 degrees

Step-by-step explanation:

As the two given angles are complementary,

2x-10+3x-10=90

5x-20=90

5x=90+20=110

x=110/5=22

x=22

Now each angle

2x-10=2*22-10=34 degrees

and

3x-10=3*22-10= 56 degrees

4 0
4 years ago
Grant is making muffins for a reunion. The recipe to makes 12 muffins. The recipe for bran muffins makes 18 muffins. He wants to
Lapatulllka [165]

Answer:

a 36

b 3 blueberry, 2 bran

4 0
3 years ago
Estimate 4 1/3 x 2 3/4
kupik [55]

Answer:

11 11/12

Step-by-step explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • What is the median of the number of absences?
    12·1 answer
  • Maths Help
    9·1 answer
  • 0.0000034 - (1.8 × 10-^7) simplfy
    10·1 answer
  • A triangle has side lengths of 12cm, 35cm, and 37cm. classify it as acute,obtuse, or right
    5·1 answer
  • Solve for u -3/5u+2=6
    10·1 answer
  • How to multiply as a decimal 13.27 x 1/100=​
    12·1 answer
  • A band sells tickets to a concert cost either $15 for adults or $10 for students. A total of 150 tickets are sold. If the band m
    15·2 answers
  • A fisheries biologist has been studying horseshoe crabs. She has sampled 100 horseshoe crabs and recorded their weight (in kilog
    10·1 answer
  • What is the value of the 4 in the number 27.43? write your answer as a fraction
    6·1 answer
  • X^2 - 25factor each expression completely
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!