Hi

First time post. I'm a AP stats teacher and need help completing a program. The point of the program is to estimate the proportion of the area of a rectangle taken by an inscribed ellipse. I have an old TI-83 program that I've done my best to mimic. It produces the correct proportion in the end, but is missing the graphical display with the ellipse and rectangle drawn with the random points populating on screen.

Please, help me with the graphical piece… I have no idea how to replicate the graph portion of the programming on the Nspire.

Here's the original TI-83 program:

(Since I can't post links, Google "ellipse proportion statistics" and click the third result with the Google Books link. It has the program on the right side of the highlighted page.

Here's my Nspire program so far:

```
Define LibPub ellipse()=
Prgm
:Request "Enter a:",a
:Request "Enter b:",b
:Request "How many points?",n
:s:=0
:For i,1,n,1
:x:=2*a*rand()-a
:y:=2*b*rand()-b
:If b^(2)*x^(2)+a^(2)*y^(2)<a^(2)*b^(2)
:s:=s+1
:EndFor
:t:=((s)/(n))
:Disp "Proportion of points in side",t
:DelVar a,b,n,s,x,y,t
:EndPrgm
```

THANKS!