Lab 22: Data Mining and JavaScript
- On your own, find five real world examples of data mining.
- Selecting one of those examples, describe the data, the method
for data mining, and the result.
- Put together a quick html file (or use an old one). Add a
script tag that prints out the date the document was last
modified. (Most of Chris' lecture and lab slides have that
code.)
- Modify the html file so that it has a form with two text boxes
and a button.
- Now make a javascript function that stores the value of those boxes.
- Now modify the button tag to catch the onClick event. When you catch the
event, call that javascript function that stores the value.
- Now, modify the function (and use a global array) to store
multiple pairs of numbers.
- Finally, calculate the average of the pairs when a second button
is pushed.
- You might want to look at
http://www.w3schools.com/js/default.asp
- See a partial solution if you're
interested.