Sunday, June 19, 2011

Worksheet generator 1

Rem Algebra worksheet generator Linear equations
n=10
dim x(n)
dim a(n)
dim b(n)
dim c(n)
dim d(n)
for q = 0 to n-1
x[q]= int (rand*10+2)
a[q]= int (rand*10+5)
b[q]= int (rand*10+5)
c[q]= int (rand*5+2)
d[q]=a[q]*x[q]+b[q]-c[q]*x[q]
print (q+1)+") "+a[q]+"x+"+b[q]+" = "+c[q]+"x+"+d[q]
next q
input "press for solutions",a
for q = 0 to n-1
print (q+1)+") x="+x[q]
next q