Click on the p.html link to run my senior project.
Clear canvas clears the data and calculate calculates the greatest common divisors(gcd) and least common mutliples(lcm).
For those of you who may not be aware of what my program is for,
it can be used to look at properties of patterns in pascals triangle.
For example make a pattern like the following and calculate.
No matter where you do it on the triangle, the gcds of the
group should be the same, and (if I remember correctly) the lcm of one
group should be a multiple of the lcm of the other.
Finished what should be my final major revision.
The features:
-Move your pattern around on the triangle using buttons. This way if you want to look at a certain pattern in different places it is not necessary to re-enter the points at each place in the triangle.
-Generate a report that displays GCD and LCM info for the pattern you have selected over whatever rows you select in the report form. Caution: If you do too many rows in a single report the program may crash. In my experience Netscape deals with the larger numbers quicker than Internet Explorer but also seems more likely to crash (due to report size(?)) than Internet Explorer. In fact, I have run pretty big reports on IE and though, it took quite awhile, it didn't crash at all. If you have trouble with it crashing, you can break the report down into separate reports each taking a smaller section of rows as needed. There is the option to make a delimited report which you should be able to copy and paste into a file which can then be imported into a spreadsheet program such as Excel where the data will be more easily viewed.
A self-extracting file containing this program.
The java runtime environment (JRE) for this version (1.1.8) of java is available here.
If you have trouble setting this up and want some help, drop me a line I would be glad to help.
Following are the files that make up my program.
P.java
CCanvas.java
xyArray.java
ScrollbarHandler.java