You are on page 1of 1

ITEW2 – CLIENT SIDE SCRIPTING

PRELIM LABORATORY EXERCISE 2

NAME: SECTION: DATE: GRADE:

GRADING SCALE
UNSATISFACTORY AMATEUR ACCEPTABLE EXCEPTIONAL SCORE WEIGHT TOTAL
TRAITS
(0-2) (3-5) (6-8) (9-10) (0-10) (SCORE x
WEIGHT)
READABILITY The code is poorly The code is readable The code is fairly The code is 30%
organized and very only by someone who easy to read. exceptionally well
difficult to read. knows what it is organized and very
supposed to be doing. easy to follow.
EFFICIENCY The code is huge and The code is brute force The code is fairly The code is extremely 30%
appears to be and unnecessarily efficient without efficient without
patched together. long. sacrificing sacrificing
readability and readability and
understanding. understanding.
SPECIFICATIONS The program is The program produces The program works The program works 40%
producing incorrect correct results but and produces the and meets all of the
results. does not display them correct results and specifications.
correctly. displays them
correctly.

Create web that will allow a user to enter a number in a text field (1 to 12 digits) and will generate the following output in a <p></p> tag with id =
“pOutput”:

 Count All Digits


 Count All Even Digits
 Count All Odd Digits
 Most Occurring Digit/s (display all possible most occurring digits within the number)
 Find a Digit (show a prompt for asking the digit to find within the number in the text field)

Each output will be assigned with individual buttons for execution. Include a CLEAR button that will clear all the contents of the fields and <p></p>
in order to allow the user to repeat the program execution. Provide a way to check if the user input is a number since the program requirement is to
work with numbers and not with strings. Save your work in a folder on your desktop named as PrelimLab2 with subfolders such as pages and
scripts. Use coding conventions according to our discussions including the correct way for declaring variables.

You might also like