This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: code. 3. a. Compare and contrast stacks and queues. Hint: Summarize the operations on stacks and queues using a table and use a diagram to show the difference between basic operations. b. Modify the expression conversion algorithm shown in class to include unary operators. Hint: i. Unary operators operate on only one argument. -5, +9 etc ii. How do you distinguish between a unary and binary operator? (Think about the number of arguments) Unifed Engineering Spring 2004 iii. Use the following test expression -5 + 9 + -6 + 2 to see if the conversion works. Assume: i. The unary operators are only + and -. ii. Inputs are user input strings of maximum length 80. c. Implement your algorithm as an Ada95 program. Turn in a hard copy of your algorithm and code listing, and an electronic copy of your code....
View Full Document
This note was uploaded on 01/28/2012 for the course AERO 16.01 taught by Professor Markdrela during the Fall '05 term at MIT.
- Fall '05