"); newWindow.document.write("

Error in Input

Maximum Number should be greater than Minimum number
"); newWindow.document.write("
Hosted by www.Geocities.ws

"); newWindow.document.close(); } else { today = new Date() // create document newWindow.document.write("Subtraction Test"); newWindow.document.write("
"); newWindow.document.write("Students Name :"+" "+document.addtable.name.value+ "
Teachers Name :"+" "+document.addtable.teacher.value+ "
Date :"+" "+today) newWindow.document.write("

") newWindow.document.write("") newWindow.document.write("") for (var m = 1 ;m <= 10 ;m++){ x = Math.random() y = x * 1000 a = Math.round(y) while( a < minimum || a > maximum) { x = Math.random() y = x * 1000 a = Math.round(y) } x = Math.random() y = x * 1000 b = Math.round(y) while( b < minimum || b > maximum || b > a) { x = Math.random() y = x * 1000 b = Math.round(y) } newWindow.document.write("") newWindow.document.write("") newWindow.document.write("") newWindow.document.write("") newWindow.document.write("") newWindow.document.write("") newWindow.document.write("") newWindow.document.write("") } newWindow.document.write("
Subtraction
"+m+") "+a+" - "+b+" =    

") newWindow.document.write("


This page was created at http://www.geocities.com/shankara_c") newWindow.document.write("
Hosted by www.Geocities.ws

"); // close the document - (not the window!) newWindow.document.close(); } } //-->
home/ Java Script/ Subtraction Table

Subtraction Test Sheet

I wrote this JavaScript to help hone my daughter Apeksha Shankar's subtraction skill. Each time you press CREATE SUBTRACTION TABLE button a new random subtraction test sheet is generated, print it and use it. This script need Netscape or InternetExplorer above Ver 3.0

Students Name
Teachers Name
Maximum Number
Minimum Number

I hope the program will be of some use to you. This program is Postcardware, if you like the program, please feel free to send me a postcard.

Shankar Chakkere
19659 Crystal Rock Dr #12
Germantown
USA
__________________________________________________________________

Back to Shankar's Home Page
Hosted by www.Geocities.ws

1