Anda di halaman 1dari 2

Prepared by Muhammad Zubair

Assignment No.1

IT430

Task.1: Convert the binary number (10101001)2 into its equivalent decimal number with
all calculation steps.

(10101001)2 = (169)10
Step by step solution
Step 1: Write down the binary number:
10101001
Step 2: Multiply each digit of the binary number by the corresponding power of two:
1x27 + 0x26 + 1x25 + 0x24 + 1x23 + 0x22 + 0x21 + 1x20
Step 3: Solve the powers:
1x128 + 0x64 + 1x32 + 0x16 + 1x8 + 0x4 + 0x2 + 1x1 = 128 + 0 + 32 + 0 + 8 + 0 + 0 + 1
Step 4: Add up the numbers written above:
128 + 0 + 32 + 0 + 8 + 0 + 0 + 1 = 169. This is the decimal equivalent of the binary number
10101001.

Task 2: You have to write the HTML code for creating a fromas shown in the following
screenshot.

<!DOCTYPE
html>
<html>
<head>
<title>Test</title>
</head>
<body>
<form>
Student ID:&nbsp<input type="mc110400068"><b style="background-color:
red; margin-left: 5px;">*Write your own VUID</b><br>
Password: &nbsp&nbsp<input type="password" style="margin-top: 5px;" >
<br>
<button name="login" type="submit" style="margin-left: 115px; margin-top:
5px;">Login</button> Press Login button
</form>
</body>
</html>

https://www.facebook.com/groups/VuStrength/
Prepared by Muhammad Zubair

Task 3: Identify the Network IDs and Host IDsfrom the given IP addressesand then
mention them in their respective columns.

IP Address Network IDs Host IDs


192.168.91.61 24 Bit 8 Bit

172.192.1.10 16 Bit 16 Bit

10.0.0.9 8 Bit 24 Bit

Note: if you found any mistake then correct ur self I am not responsible in case of zero
marks

https://www.facebook.com/groups/VuStrength/

Anda mungkin juga menyukai