akosiraff

Download CSE 231 Assignment on Stacks

Aug 10th, 2015
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/cse-231-assignment-on-stacks/
  3. CSE 231: Assignment on Stacks
  4. Write a program that evaluates arithmetic expressions in infix notation that are not
  5. necessarily fully parenthesized. An arithmetic operation +, -, * or / has its usual
  6. precedence and associativity. You can assume that numbers are floating point
  7. numbers such as 10.23. Your program shall repeatedly request the user to input an
  8. expression and displays the value of the expression until the user does not want to
  9. continue. Your program needs to detect as many syntax errors as possible. You
  10. should also detect and capture the division by zero error.
  11. You are required to use the stack class provided by Java Application Programming
  12. Interface; please download Java documentation from java.sun.com and read about
  13. the Stack class provided by Java.
  14. You are also required to document your program so that it can be understood by
  15. others such as the grader and the instructor.
  16. Please submit
  17. 1. Analysis: test data;
  18. 2. Design:
  19. ? Class diagrams showing representation of data;
  20. ? A class invariant for each class;
  21. ? Pre/Post conditions for required operations;
  22. ? Algorithms for required operations. Algorithms can be described in
  23. English, flow diagrams, or sequence diagrams;
  24. 3. Code;
  25. 4. Screen snapshots of test runs.
  26. Download: http://solutionzip.com/downloads/cse-231-assignment-on-stacks/
Add Comment
Please, Sign In to add comment