Oops... Parenthesis Mismatch

A mathematical expression was given on a test that contained a missing parenthesis.

	5(2 + 3 + 4 + 5) / 2 - 10)

	5(2 + 3 + 4 + 5) / 2 - 10)
	 |             |         ^
	 +-------------+         |
Exercises
  1. Evaluate: 5(2 + 3 + 4 + 5) / 2 - 10
    [right-most closing parenthesis deleted]

  2. Evaluate: 5(2 + 3 + 4 + 5 / 2 - 10)
    [closing parenthesis after the 5 deleted]

  3. Evaluate: 5(2 + (3 + 4 + 5) / 2 - 10)
    [opening parenthesis inserted before the 3]


Creator: Gerald D. Thurman [gthurman@gmail.com]
Created: 07 February 2007

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 United States License.