IT430 Assignment No. 1 Fall 2011 solution

No Comments
Assignment No. 01
Semester: Fall 2011
IT430 E-Commerce
Total Marks: 20

Due Date: 01/11/2011

Question 1:      (6+4)
a) Convert the following IP addresses to binary and vice versa. 

i)
192.168.1.10
10.50.0.20
140.128.1.4

ii)
10011011.10101011.00110101.11100101
11010101.11011011.11110101.10101111
11101111.10111011.10001101.11011111

b)   
Consider the following topology in which we have 5 computers from different network which are connected with each others through 7 routers i.e. R1, R2, R3, R4, R5, R6, and R7.Assume that computer "A" wants to send data to computer E what will be shortest path leading towards computer E? Also identify the other possible paths leading towards computer E.

Question 2:        (10)
Write a program in HTML to create an online patient registration form. The patient registration form must contain information about patients that is to be admitted in the hospital. In the radio buttons Sex and Marital status only one must be selected at a time.

Your output should look like this:

NOTE: Submit ".doc" file only. Copy your HTML code of Question 2 in the same word file (You do not need to submit separate html file). Every student should provide his/her own work, exact copying of the assignment (or some portion of the assignment) from the internet or other students will lead to copy case and zero marks will be awarded. Different softwares will be used to check plagiarism in assignments. Do not put any query on MDB about this assignment, if you have any query then  email at it430@vu.edu.pk

Deadline:
Your assignment must be uploaded/submitted on or before 1st November 2011.


IT430 SOLUTION:



<html>
<head>
<title>PATIENT REGISTRATION FORM</title>
</head>
<body>
<p align="center"><b><font size="4">PATIENT REGISTRATION FORM
vusolutions</font></b></p>
<form method="POST" >
<table border="0" cellpadding="5" cellspacing="1" style="border-collapse: collapse"
bordercolor="#111111" width="100%">
<tr>
<td width="100%">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse:
collapse" bordercolor="#111111" width="650">
<tr>
<td width="50">
<p align="right"><b>Date:</b></td>
<td width="200">
<p align="center"><input type="text" name="Date" size="22"></td>
<td width="15">&nbsp;</td>
<td width="170">
<p align="right"><b>Patient Control Number:</b></td>
<td>
<p align="center"><input type="text" name="pcn" size="25"></td>
</tr>
</table>
</center>
</div>
</td>
</tr>
<tr>
<td width="100%"><b><font size="4">PERSONAL
INFORMATION</font></b></td>
</tr>
<tr>
<td width="100%">
<table border="0" cellpadding="3" cellspacing="1" style="border-collapse: collapse"
bordercolor="#111111" width="450">
<tr>
<td width="170" align="right"><b>Name:</b></td>
<td width="265"><input type="text" name="name" size="30"></td>


</tr>
<tr>
<td width="170" align="right"><b>CNIC#:</b></td>
<td width="265"><input type="text" name="cnic" size="30"></td>
</tr>
<tr>
<td width="170" align="right"><b>Sex:</b></td>
<td width="265"><input type="radio" value="male" name="gender"
checked>Male
<input type="radio" name="gender" value="female">Female</td>
</tr>
<tr>
<td width="170" align="right"><b>Marital Status:</b></td>
<td width="265"><input type="radio" name="status" value="single"
checked>Single
<input type="radio" name="status" value="married">Married</td>
</tr>
<tr>
<td width="170" align="right"><b>Father/Husband Name:</b></td>
<td width="265"><input type="text" name="fhname" size="30"></td>
</tr>
<tr>
<td width="170" align="right"><b>Date Of Birth:</b></td>
<td width="265"><input type="text" name="dob" size="30"></td>
</tr>
<tr>
<td width="170" align="right"><b>Phone:</b></td>
<td width="265"><input type="text" name="phone" size="30"></td>
</tr>
<tr>
<td width="170" align="right"><b>Address:</b></td>
<td width="265"><input type="text" name="address" size="30"></td>
</tr>
<tr>
<td width="170" align="right" valign="top"><b>Select Occupation:</b></td>
<td width="265"><select size="4" name="occupation" multiple>
<option>Student</option>
<option>Advocate</option>
<option>Judiciary</option>
<option>Engineering</option>
<option>Business</option>
<option>Textile</option>
<option>vusolutions</option>
</select></td>
</tr>
</table>


</td>
</tr>
<tr>
<td width="100%"><b><font size="4">INCASE OF
EMERGENCY</font></b></td>
</tr>
<tr>
<td width="100%">
<table border="0" cellpadding="3" cellspacing="1" style="border-collapse: collapse"
bordercolor="#111111" width="100%">
<tr>
<td width="30%" align="right"><b>Name of the person whom to contact:
<br>
In case of emergency (not living at same address</b></td>
<td width="70%"><input type="text" name="ie_name" size="30"></td>
</tr>
<tr>
<td width="30%" align="right"><b>Relationship with Patient:</b></td>
<td width="70%"><input type="text" name="r_patient" size="30"></td>
</tr>
<tr>
<td width="30%" align="right"><b>Phone No:</b></td>
<td width="70%"><input type="text" name="ie_phone" size="30"></td>
</tr>
<tr>
<td width="30%" align="right"><b>Address:</b></td>
<td width="70%"><input type="text" name="ie_address" size="30"></td>
</tr>
</table>
</td>
</tr>
</table>
<p align="center"><input type="submit" value="Submit" name="submit"><input
type="reset" value="Reset" name="reset"></p>
</form>
</body>
</html>




Question 1: (6+4)


a) Convert the following IP addresses to binary and vice versa.


i)
192.168.1.10  = 11000000.10101000.1.1010
10.50.0.20    = 1010.110010.0.10100
140.128.1.4   = 10001100.10000000.1.1110




(Please note that, in part one of this questions I have not written 0’s in the prefix of binary conversation of each part)


ii)
10011011.10101011.00110101.11100101  = 155.171.53.229
11010101.11011011.11110101.10101111  = 213.219.245.175
11101111.10111011.10001101.11011111  = 239.187.141.223




b)
Consider the following topology in which we have 5 computers from different network which are connected with each others through 7 routers i.e. R1, R2, R3, 


R4, R5, R6, and R7.Assume that computer “A” wants to send data to computer E what will be shortest path leading towards computer E? Also identify the other 


possible paths leading towards computer E.


The shortest path for sending data from Node A – Node E will be R2 – R6 – R7
Other possible path(s) for the same data sening from Node A – Node E will be R1 – R4 – R5 – R7
Next PostNewer Post Previous PostOlder Post Home

0 comments

Post a Comment