This page is located at http://www.cs.wpi.edu/~alvarez/CS1005/HW3/
g++ -o hw3prog hw3.cxx randgen.cppDebug your program as necessary. Test your program for different numbers of dimensions and Monte Carlo iterations. Once you're satisfied that your program is behaving as desired, generate a script file named hw3.script that shows several runs of your program. To do this, just type script hw3.script at the Unix prompt. Then run your program as usual. When you're done, type exit to discontinue the logging process. Include runs for dimensions n=2, n=3, n=4. Notice that for n=2 your program should report a volume fraction close to pi/4 (about .785). What happens to the volume fraction reported by the program as the number of dimensions increases?