College of Computing and Informatics Pg. 04 Question Two Assignment 2 Deadline:

College of Computing and Informatics

Pg. 04

Question Two

Assignment 2

Deadline: Wednesday 24/10/2021 @ 23:59

[Total Mark for this Assignment is 5]

Assignment 2

Deadline: Wednesday 24/10/2021 @ 23:59

[Total Mark for this Assignment is 5]

Web Technologies

IT230

Web Technologies

IT230

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 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.

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 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.

Student Details:

Name:

CRN:

ID:

Student Details:

Name:

CRN:

ID:

1 Mark

1 Mark

Learning Outcome(s):

Describe methods and tools in web development.

Design XML Schemas and documents.

Learning Outcome(s):

Describe methods and tools in web development.

Design XML Schemas and documents.

Question One

Q1: Draw a Document Object Model DOM) for the following XML document.

HINT: You can draw using hand drawing. Then, take a phone picture and paste it OR drawing using a software tool.

ANSWER:

3 Marks

3 Marks

Learning Outcome(s):

Design XML Schemas and documents.

Create Rich Internet Applications.

Learning Outcome(s):

Design XML Schemas and documents.

Create Rich Internet Applications.

Question Two

Assume you have the courses data as shown in below table. Based on this table, answer the following questions.

id

name

credit

level

IT110

Computer Organization

3

3

IT230

Web Technologies

3

6

Q2.1: Create a well-formed XML document containing details of a courses like id, name, credit and level. Name the file as courses.xml

Q2.2: Based on the XML document you created in Q2.1, create the DTD (Document Type Definition) file.

Q2.3: Based on the XML document you created in Q2.1, Create the XSL style sheet that transform the XML document into HTML using XSLT. Name the file as courses.xsl

Q2.4: Add the XSL style sheet that you created it in Q2.3 as a reference to your XML document (“courses.xml”). Then, run your XML file into your browser and take a screenshot from the browser out and paste it here as a part of your answer.

1 Marks

1 Marks

Learning Outcome(s):

Build web applications using PHP and MySQL.

Learning Outcome(s):

Build web applications using PHP and MySQL.

Question Three

Write a PHP script that saves your “id”, “name” and “email” into an array. Then print/echo the array data into the browser.

HINT: Include the screenshot of the output as a part of your answer. Otherwise, you will be marked zero for this question.

Sample output