Assignment 10 - Javascript Simple Calculator (PL's note js pages 16 to 27)

LABAR Project 10
This assignment is to be done during your one hour lab by arrangement (LABAR). This assignment requires you to write your first javascript to declare, assign and display three variables of the string, number, and boolean types respectively.
In this assignment, Assignment #10, you are to create a simple calculator as in the HTML Form below. This calculator can:
  • add, substract, multiply, and divide the two numbers entered;
  • after the math operator button is pressed, the result shall be placed inside the Answer field;
  • after the Clear, "C" button is pressed, all fields shall be cleared.

Enter a number:
Enter a number:

Answer =

The above html form code is listed below:


Sample Code:
Javascript Adder

 

Try this adder out!

Simple Adder
Enter a number:
Enter a number:


Answer =

No response to “Assignment 10 - Javascript Simple Calculator (PL's note js pages 16 to 27)”

Post a Comment