Skip to content

AbhishekMali21/WEB-TECHNOLOGY-LABORATORY

Repository files navigation

Laboratory Experiments:

  1. WRITE A JAVASCRIPT TO DESIGN A SIMPLE CALCULATOR TO PERFORM THE FOLLOWING OPERATIONS:SUM, PRODUCT, DIFFERENCE AND QUOTIENT.

  2. WRITE A JAVASCRIPT THAT CALCULATES THE SQUARES AND CUBES OF THE NUMBERS FROM 0 TO 10 AND OUTPUTS HTML TEXT THAT DISPLAYS THE RESULTING VALUES IN AN HTML TABLE FORMAT.

  3. WRITE A JAVASCRIPT CODE THAT DISPLAYS TEXT “TEXT-GROWING” WITH INCREASING FONT SIZE IN THE INTERVAL OF 100MS IN RED COLOR, WHEN THE FONT SIZE REACHES 50PT IT DISPLAYS “TEXT-SHRINKING” IN BLUE COLOR. THEN THE FONT SIZE DECREASES TO 5PT.

  4. DEVELOP AND DEMONSTRATE A HTML5 FILE THAT INCLUDES JAVASCRIPT SCRIPT THAT USES FUNCTIONS FOR THE FOLLOWING PROBLEMS:
    A. PARAMETER: A STRING
    B. OUTPUT: THE POSITION IN THE STRING OF THE LEFT-MOST VOWEL
    C. PARAMETER: A NUMBER
    D. OUTPUT: THE NUMBER WITH ITS DIGITS IN THE REVERSE ORDER

  5. DESIGN AN XML DOCUMENT TO STORE INFORMATION ABOUT A STUDENT IN AN ENGINEERING COLLEGE AFFILIATED TO VTU. THE INFORMATION MUST INCLUDE USN, NAME, AND NAME OF THE COLLEGE, BRANCH, YEAR OF JOINING, AND EMAIL ID. MAKE UP SAMPLE DATA FOR 3 STUDENTS. CREATE A CSS STYLE SHEET AND USE IT TO DISPLAY THE DOCUMENT.

  6. WRITE A PHP PROGRAM TO KEEP TRACK OF THE NUMBER OF VISITORS VISITING THE WEB PAGE AND TO DISPLAY THIS COUNT OF VISITORS, WITH PROPER HEADINGS.

  7. WRITE A PHP PROGRAM TO DISPLAY A DIGITAL CLOCK WHICH DISPLAYS THE CURRENT TIME OF THE SERVER.

  8. WRITE THE PHP PROGRAMS TO DO THE FOLLOWING:
    A. IMPLEMENT SIMPLE CALCULATOR OPERATIONS.
    B. FIND THE TRANSPOSE OF A MATRIX.
    C. MULTIPLICATION OF TWO MATRICES.
    D. ADDITION OF TWO MATRICES.

  9. WRITE A PHP PROGRAM NAMED STATES.PY THAT DECLARES A VARIABLE STATES WITH VALUE "MISSISSIPPI ALABAMA TEXAS MASSACHUSETTS KANSAS". WRITE A PHP PROGRAM THAT DOES THE FOLLOWING:


A. SEARCH FOR A WORD IN VARIABLE STATES THAT ENDS IN XAS. STORE THIS WORD IN ELEMENT 0 OF A LIST NAMED STATESLIST.
B. SEARCH FOR A WORD IN STATES THAT BEGINS WITH K AND ENDS IN S. PERFORM A CASEINSENSITIVE COMPARISON. [NOTE: PASSING RE.IAS A SECOND PARAMETER TO METHOD COMPILE PERFORMS A CASE-INSENSITIVE COMPARISON.] STORE THIS WORD IN ELEMENT1 OF STATESLIST.
C. SEARCH FOR A WORD IN STATES THAT BEGINS WITH M AND ENDS IN S. STORE THIS WORD IN ELEMENT 2 OF THE LIST.
D. SEARCH FOR A WORD IN STATES THAT ENDS IN A. STORE THIS WORD IN ELEMENT 3 OF THE LIST.
  1. WRITE A PHP PROGRAM TO SORT THE STUDENT RECORDS WHICH ARE STORED IN THE DATABASE USING SELECTION SORT.