Pages

Friday, November 5, 2010

IT430 e commerce Assignment Solution

Question # 1:
a)    Solution:
From the following figture that is to be clear that C send the data from R4 to R1 and alternate shortest path is R4 to R3 and R3 to R2 and then R2 to R1 use these paths.
b)       Soution:

a)      221.120.152.10
Working Note:

2
121
2
120
2
152
2
10
2
110-1
2
60-0
2
76-0
2
5-0
2
55-0
2
30-0
2
38-0
2
2-1
2
27-1
2
15-0
2
19-0
2
1-0
2
13-1
2
7-1
2
9-1


2
6-1
2
3-1
2
4-1


2
3-0
2
1-1
2
2-0


2
1-1


1-0



So answer is
=  11011101.01111000.10011000.00001010





b)      202.125.147.6   
Working Notes:

2
202
2
125
2
147
2
6
2
101-0
2
62-1
2
73-1
2
3-0
2
50-1
2
31-0
2
36-1

1-1
2
25-0
2
15-1
2
18-0


2
12-1
2
7-1
2
9-0


2
6-0
2
3-1
2
4-1


2
3-0

1-1
2
2-0



1-1


1-0


So Answer is =  11001010.01111101.01111111.00000110
c)      121.100.246.10 = 01111001.01100100.11110110.00001010
Working Note:
01111001=20*1+21*0+22*0 +23*1 +24*1 +25*1 +26*1 +27*0
                = 1+0+0+8+16+32+64+0
                = 121
01100100 = 20*0+21*0+22*1 +23*0 +24*0 +25*1 +26*1 +27*0
                 = 0+0+4+0+0+32+64+0
                 = 100
11110110 = 20*0+21*1+22*1 +23*0 +24*1 +25*1 +26*1 +27*1
                 = 0+2+4+0+16+32+64+128
                 = 246
00001010 = 20*0+21*1+22*0 +23*1 +24*0 +25*0 +26*0 +27*0
                 = 0+2+0+8+0+0+0+0
                 = 10
d)    202.125.138.157 = 11001010.01111101.10001010.10011101
Working Note:

11001010=20*0+21*1+22*0 +23*1 +24*0 +25*0 +26*1 +27*1
                = 0+2+0+8+0+0+64+128
                = 202
01111101 = 20*1+21*0+22*1 +23*1 +24*1 +25*1 +26*1 +27*0
                 = 1+0+4+8+16+32+64+0
                 = 125
10001010 = 20*0+21*1+22*0 +23*1 +24*0 +25*0 +26*0 +27*1
                 = 0+2+0+8+0+0+0+128
                 = 138
10011101 = 20*1+21*0+22*1 +23*1 +24*1 +25*0 +26*0 +27*1
                 = 1+0+4+8+16+0+0+128
                 = 157

Question # 2

A) Solution:

<html> 
<head> 
 <title>Link And Text      </title> 
</head>
<body bgcolor=blue link=yellow text=white>
<h1> Go to Virtual University </h1>
<a href=http://vulms.vu.edu.pk> Virtual University </a>
</body>
</html>

B) Solution:

<html> 
<head> 
 <title>Four Equal Vertical Frames       </title> 
</head>
<frameset cols="25%,25%,25%,25%" border=0>
<frame src=1.htm target=_self name=left noresize>
<frame src=2.htm target=_self name=left1 noresize>
<frame src=3.htm target=_self name=rigt noresize>
<frame src=4.htm target=_self name=right1 noresize>
<body>
</frameset>
</body>
</html>




C) Solution:

<html>
<head><title> Login Page      </title>
</head>
<body>
                        <p> User ID </p>
                        <form name="form" method="post" action="http://vu.edu.pk">
<input type="text" name="userId" size="20">
                        <p>Password:<input type="password" name="password"></p>


<p><input type="reset" value="Reset">
<input type="submit" value="Submit"></p>
</form>
</body>
</html>

No comments:

Post a Comment