CMPS 335 Advanced Web Publishing
JavaScript Programming

Assignment 5, Spring, 2002
Simulating A Simple Calculator (HTML form and JavaScript)


Primary Objectives of the Assignment
Using HTML form elements, simulate a simple calculator as shown in the example below.  Use JavaScript code to accomplish compuitational tasks of the calculator.

The calculator should have the following form elements:

(An example of the simulated calculator)
Online Examples:
     A simple calculator (jsCalculator1.html - using the if statement)
     A simple calculator (jsCalculator2.html - using the switch statement)
     A better calculator (jsCalculator3.html - using the switch statement)

Return to CMPS 335 Main Page
Return to Web Site Home Page