0% found this document useful (0 votes)
224 views1 page

JavaScript Last Long Exam-Practical Exam

This document outlines 3 problems for a long exam on web design fundamentals. Problem 1 involves creating an HTML form and JavaScript functions to calculate subtotal, discount, and net amount. Problem 2 uses JavaScript functions to calculate area, circumference, and diameter of a circle using predefined constants and limiting decimal places. Problem 3 creates an HTML form to calculate semester grade based on percentages of prelims, midterms, and finals, then uses message boxes and conditional logic for buttons to clear entries, display results, or close the program.

Uploaded by

jocansino4496
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
224 views1 page

JavaScript Last Long Exam-Practical Exam

This document outlines 3 problems for a long exam on web design fundamentals. Problem 1 involves creating an HTML form and JavaScript functions to calculate subtotal, discount, and net amount. Problem 2 uses JavaScript functions to calculate area, circumference, and diameter of a circle using predefined constants and limiting decimal places. Problem 3 creates an HTML form to calculate semester grade based on percentages of prelims, midterms, and finals, then uses message boxes and conditional logic for buttons to clear entries, display results, or close the program.

Uploaded by

jocansino4496
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

ITWD103 Web Design Fundamentals

Last Long Exam/Practical Exam


Problem #1: Computing the Net Amount (20 points)
Create an HTML document containing the given form below. Write a JavaScript code that uses functions.

Make necessary functions/event for the following buttons:

Calculate

Clear

Close
Compute for the following:

Sub-Total

Discount Amount = 20% of sub-total

Net Amount

Problem #2: Usage of Caret(^) Symbol (30 points)


Create an HTML document containing the given form below. Write a JavaScript code that uses functions.
Formulas:
- Area
A=r2
- Circumference
C=2r
- Diameter
D=2r
Note:

define the value of as constant


= 3.1416
Limit decimal place to 2 only
Provide necessary data validation scripts.

Problem #3: MessageBox with Condition (50 points)


Create an HTML document containing the given form below. Write a JavaScript code that uses functions.

Formula:
Semestral Grade = 25% of Prelim + 25% of
Midterm + 50% of Final

Point Equivalent Table:


Sem Grade
100
95-99
90-94
85-89
80-84
75-79
74 below

Pt. Equivalent
1.00
1.50
2.00
2.50
3.00
3.50
5.00

For New Entry Button:


Upon clicking displays this message box
If Yes will clear all entries else nothing happen

For Compute Button:


Upon clicking displays this message box
If Yes will display the results else nothing happen
For Exit Button:
Will close the program/application

Page 1 of 1

You might also like