
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Assignment 1 Data Structure Using Java CS 240 (Section 1) Due date: February 23, 2005 In this assignment you are going to design an object which would compute the area within a closed curve using a Monte Carlo simulation technique that was explained in the class. You’re going to test your result on a close surface within a circle x^ y^16 (^2) (^2) , the positive x-axis and the line y^ ^ x. You are going to consider only the closed area appearing in the first segment marked oab as shown in the diagram below. The circle is centered at (0.0, 0.0) point and has a radius of 2 units long. The line y^ x passes through the center of the circle. a o b