The link at the bottom of this page will start a script that contains the type of divide-by-zero bug that has tormented computer users and crashed computer systems for decades. Here is the very short (three line) script that will execute:
The problem in this script, as ScriptEase:WebServer Edition will report, is in line 15 where the TotalSalary is divided by TotalEmployeeCount, but TotalEmployeeCount has the value 0 because the writer of this script "forgot" to add a line to increment TotalEmployeeCount every time AddSalary() was called. When you execute the following script ScriptEase:WebServer Edition will report this error. Execute DIVBY0.JSE |