Recent content by Indigo_Blue

  1. I

    Comp Sci Why Is My Java Monte Carlo Simulation Not Approximating Pi Accurately?

    I figured out what I was doing wrong. I did not need an "else" statement in my for loops and I was supposed to used nextDouble() to generate the numbers. I knew I was supposed to used nextDouble() but I could not figure out how to make it print the highest value in a given range since it always...
  2. I

    Comp Sci Why Is My Java Monte Carlo Simulation Not Approximating Pi Accurately?

    I added the curly braces here, but it didn't made a difference.I'm still not close to the approximated pi value of 3.14159 " else{ lowestXvalue=(int)(k-r); highestXvalue=(int)(k+r); return lowestXvalue+rndm.nextInt(highestXvalue+1-lowestXvalue);} " I'm still getting...
  3. I

    Comp Sci Why Is My Java Monte Carlo Simulation Not Approximating Pi Accurately?

    Homework Statement There is a square and a circle is inscribed inside. Simulate an experiment where raindrops drop on this surface. Some raindrops can drop in or on the border of the circle. Some can drop outside the circle. The area of the square divided by the area of the circle gives you pi...
  4. I

    Confused whether an object is at rest or has velocity at t=0

    1.The car is given a slight push. It goes up the ramp, then it slides back down to its initial position. 2. I don't really know the velocity time graph, but the position vs time graph is a parabola that concaves down. I think I am supposed to draw a tangent line on the position vs time graph to...
  5. I

    Confused whether an object is at rest or has velocity at t=0

    Homework Statement So i have this lab where I am supposed to push a car up an inclined ramp. I record the time it takes for the object to reachest the highest point on the inclined ramp before it goes back down. I am supposed to create a position vs time graph, velocity vs time graph, and...
Back
Top