CSci 170: Analysis of Programming Languages

Queen Assignment

Since you know Java well, but C++ no so well, this assignment is to convert a Java program into a C++ program.

(For another comparison of C++ and Java, see the sieve program in Java and compare it to the sieve program in C++ in the text.)

Here's the program in Java. We'll discuss it in detail in class.


QueenDemo.java

Queen.java


Here are the first few lines of output when you run the program, and the last line.


Back to the course page.