java programming
COMP 182, Data Structures and Program Design
Project 3
Due March 19, 2015
1. (25 points) Complete the program that solves the Eight Queens problem (pages 318 through 320). The program’s output should look similar to:
|1|0|0|0|0|0|0|0| |0|0|0|0|0|0|1|0| |0|0|0|0|1|0|0|0| |0|0|0|0|0|0|0|1| |0|1|0|0|0|0|0|0| |0|0|0|1|0|0|0|0| |0|0|0|0|0|1|0|0| |0|0|1|0|0|0|0|0|
Where a 1 represents a queen chess piece on the board, and a 0 represents an empty square on the board.
2. (25 points) Design and implement a class of postfix calculators. Use the algorithm given on page 374 to evaluate postfix expressions, as entered into the calculator. Use only the operators +, -, *, %, and /. Assume that the postfix expressions have single digit numbers in the expression and are syntactically correct.