Вы находитесь на странице: 1из 3

Solution Assignment No.

02 Semester: Fall 2012 Introduction to Computing-CS101 Total Marks: 15 Due Date: 27/11/2012

Instructions:
Please read the following instructions carefully before submitting assignment: You will submit your assignment before or on due date on VU-LMS. Assignment should be completed by your own efforts it should not be copied from internet, handouts or books. You should submit your MS Word File via assignment interface at VU-LMS. Assignment sent via Email will not be replied and accepted/graded in any case. If the submitted assignment does not open or file is corrupt, it will not be graded. You will submit solution only in Microsoft Word File.

Objectives:
To understand the fundamentals of web development.
For any query about the assignment, contact at cs101@vu.edu.pk

Assignment Questions Question No 1: Marks 5

Write a program in html to develop a drop down list that shows following five subjects of your semester in which introduction to computing CS101 is selected as default. 1. CS101 Introduction to Computing 2. CS502 fundamentals of Algorithms 3. ENG101 - English Comprehension 4. IT430 E Commerce 5. MGT101 - Financial Accounting

Answer:
<html> <body> <h1>Semester Subjects </h1><br> <select> <option value="CS101"selected"> Introduction to Computing </option> <option value="CS502"> fundamentals of Algorithms</option> <option value="IT430"> E-Commerce </option> <option value="ENG101">English Comprehension</option> <option value="MGT101">Financial Accounting</option> </select></body> </html>

Question No 2:

Marks 10

Develop a table in html with the given columns and rows as shown in the following snapshot. o o o o o The size of table border should be 1 The background color should be pink It should be aligned in the center. Use the caption of the table as Semester Mark Sheet Use cell padding to present the cell data with clarity. Rest of the table

<td rowspan="2">Subject Name</td> <td colspan="3" align="center">Semester Fall 2012</td></tr>

Answer:
<html> <body> <table border="1" align="center" bgcolor="pink" cellpadding=10> <caption> <h1>Semester Marksheet</h1></caption> <tr> <td rowspan="2" >Subject Name</td> <td colspan="3"align="center">Semester Fall 2012</td></tr> <tr> <td> Total Marks </td> <td> Obtained Marks </td> <td> Grade </td></tr> <tr> <td> CS101</td> <td> 100</td> <td> 80 </td> <td> A </td> </tr> <tr> <td> IT430</td> <td> 100</td> <td> 85</td> <td> A </td> </tr> <tr> <td> CS502</td> <td> 100</td> <td> 75 </td> <td> B </td> </tr> </table> <body>

</html> Note: o You have to develop the assignment in Notepad, then copy the code in MS Word and submit the word file. o You will submit only MS Word file (.doc). None of the other files will be acceptable.

BEST OF LUCK

Вам также может понравиться