We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
THE OPEN UNIVERSITY OF SRI LANKA.
FACULTY OF ENGINEERING TECHNOLOGY
BACHELOR OF SOFTWARE ENGINEERING
ACADEMIC YEAR ~ 2021/22
EE13346 - WEB APPLICATIONS DEVELOPMENT
LAB TEST 04- WD.
Instructions
+ Browsing the web is prohibited,
+ You should upload the work files (ZIP file) to the given drop box within 2 hours,
+ Use proper conventions and indentation when writing the code
«Use of IDEs or WYSIWYG tools are prohibited.
+ Recommended editor is VS Code.
Task
‘Use the given code “index.html” file for the following task. You ean do the necessary
modifications to the HTML code to accommodate the new functionality. You are free to add any
CSS to style the page but will not carry any extra marks.
1. When user select any value from dropdown list it must be shown as follows:
[Gateuiate] [cheer]
‘ful Table
Display the output of the selected option in the display panel once the user clicks the
calculate button.
The operations are performed as follows:
‘Add: input! + input2 + input 3
Sub: input | - input2 - input3
Mul: input! * input2 * input3
Div: input / input22. If the user chooses div option disable input3 and once the user chooses another option
enable it again.
3. If the user tries to divide a number by zero(0) display an alert with the text. “You can’t
divide by Zero”
4. Add a new button with the text clear, which resets the display value to 0, reverts any
color changes and values stored in variables.