Program 1:
Aim:
To Develop a Java Script to perform all arithmetic operations.
Algorithm:
Step 01: Start the program in note pad
Step 02: Open the html tag, inside body tag type the content to display.
Step 03: Display the arithmetic operations using paragraph tag with id attributes.
Step 04: Open the script tag, declare and initialize the variable.
Step 05: Perform the arithmetic operations and assign the values to the variables.
Step 06: Get the element by id and display the calculated values in specific tag.
Step07: Stop the program and view the output on browser.
Program 2:
Aim:
To Develop a Java Script to perform all looping construct
Algorithm:
Step 01: Start the program in notepad.
Step 02: Open the html tag, inside body tag type the content to display.
Step 03: Using the select and option tag display the dropdown list to select the number.
Step 04: Submit the value using button tag
Step 05: Apply CSS code to display.
Step 06: Get the element id of button and dropdown.
Step 07: Use the for loop, Calculate the value of input number and display it.
Step 08: Stop the program and view the output on browser.
Program 3:
Aim:
To develop a Java Script program to implement simple calculator.
Algorithm: