Web Programming-Assignment 1
Web Programming-Assignment 1
Name :
Approved by AICTE, New Delhi & Affiliated to Anna University, Chennai) TLP
Recognized by UGC & Accredited by NAAC with A+ and NBA (BME, CSE, ECE, EEE and Mech)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
Assignment 1
S.No Questions CO/Knowledge
level
1 Write HTML code to design your own website containing CO1/ K3
headings, list, tables, images, Forms, metadata and Hyperlink.
Note: Can include advanced HTML features such as audio, video,
location, plugins and
2 Create a HTML5 document for the following screenshot.
Dr. N.G.P. INSTITUTE OF TECHNOLOGY Rec. Name :
Approved by AICTE, New Delhi & Affiliated to Anna University, Chennai) TLP
Recognized by UGC & Accredited by NAAC with A+ and NBA (BME, CSE, ECE, EEE and Mech)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
JavaScript
5. Write a PHP script that takes an array of integers and performs CO3/K3
the following operations:
1. Calculate and display the sum of the integers.
2. Find and display the maximum value in the array.
3. Sort the array in ascending order and display the sorted
array.
Requirements:
Use variables to store the results of the calculations.
Utilize built-in PHP functions such as array_sum(),
max(), and sort().
Implement program control to ensure that the
operations are only performed if the array is not empty.
If the array is empty, display an appropriate message.
Dr. N.G.P. INSTITUTE OF TECHNOLOGY Rec. Name :
Approved by AICTE, New Delhi & Affiliated to Anna University, Chennai) TLP
Recognized by UGC & Accredited by NAAC with A+ and NBA (BME, CSE, ECE, EEE and Mech)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
Instructions to students
ANSWER NEATLY AND LEGIBLY on A4 sheets only and not in sheets torn from a
book.
Sketch diagrams wherever relevant. Explain your notations explicitly and clearly.
An incomplete assignment is not acceptable for submission.
Once you submit your assignment, you will be expected to answer all the questions
there INDEPENDENTLY.
You may be asked to answer any question about the assignment in the class.
Leave a clear left margin on every page.
On the top of the first page, write your Name, Class, Section, Roll No., Due Date and
Date of Submission.
Staple (do NOT pin or clip) the assignment solution sheets cleanly at the left-hand
top corner.