Description
College of Computing and Informatics
Assignment 2
Deadline: Tuesday 19/04/2022 @ 23:59
[Total Mark for this Assignment is 8]
Student Details:
Name: ###
ID: ###
CRN: ###
Instructions:
•
•
•
•
•
•
•
•
•
•
You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on
Blackboard via the allocated folder. These files must not be in compressed format.
It is your responsibility to check and make sure that you have uploaded both the correct files.
Zero mark will be given if you try to bypass the SafeAssign (e.g. misspell words, remove spaces between
words, hide characters, use different character sets, convert text into image or languages other than English
or any kind of manipulation).
Email submission will not be accepted.
You are advised to make your work clear and well-presented. This includes filling your information on the cover
page.
You must use this template, failing which will result in zero mark.
You MUST show all your work, and text must not be converted into an image, unless specified otherwise by
the question.
Late submission will result in ZERO mark.
The work should be your own, copying from students or other resources will result in ZERO mark.
Use Times New Roman font for all your answers.
Question One
Pg. 01
Learning
Outcome(s):
Create web pages
using HTML5 and
CSS3.
Question One
1.5 Marks
By using HTML and CSS, create a web page that has a navigation bar on
completion. The page will look like the following.
Question Two
Pg. 02
Learning
Outcome(s):
Question Two
1.5 Marks
Develop dynamic
Write a JavaScript function that accepts a number from a user as input and
web pages using
checks if the number is prime, then print True if the number is not a prime,
JavaScript.
print False.
Note: A prime number (or a prime) is a natural number greater than 1 that has
no positive divisors other than 1 and itself.
Question Three
Pg. 03
Learning
Outcome(s):
Develop dynamic
Question Three
1.5 Mark
Using Document Object Model (DOM):
1. Modify “src” attribute in the following HTML code, photo1.jpg to
web pages using
photo2.jpg:
JavaScript.
2. Modify the content of the following HTML code, Hello SEU to Hello KSA:
Hello SEU
Question Four
Pg. 04
Learning
Outcome(s):
Design XML
Schemas and
Question Four
1.5 Mark
Write an XML file that describes information of students in a class. The
following table has the students’ details:
documents.
Name
ID
Ahmed
1000
Muhammad
2000
Note that the root element start and end tags are provided
Question Five
Pg. 05
Learning
Outcome(s):
Build web
applications using
PHP and MySQL
Question Five
2 Mark
Write a PHP script to do the following:
1. Use regular expression to remove all characters from a string except a-z
A-Z 0-9 or ” “.
Sample string : ab9cde$dd3d @abcd )der]
Expected Result : ab9cdedd3d abcd der
2. Use regular expression to check whether a string “I like a PHP
language “ contains PHP string or not.
Purchase answer to see full
attachment