# CS101 Introduction to Computing Assignment 1 Solution Fall 2014

Question No 1:    Marks 10

As per VU degree requirement, you have started internship in XYZ Internationals Company.  XYZ Internationals is considered as a standard in Web Development and has clients from all over the World. It’s working environment is quite competitive and even as an internee you need to be a useful resource. Mr. A is your supervisor and working as Web developer in XYZ Internationals. To judge your skills, he has given you a task of designing a web page of IT Solutions as depicted in figure 1.

Figure 1

Initially, you are required to write the following commands in HTML.

• Assign title “IT Solutions” to Webpage.
• Write Heading “Welcome to IT Solutions” in Bold.
• Write “Software Support and Hardware Support in separate lines. This text should have one line space from above and below text.
• Give hyperlink of itsol@xyz.com on web page.

Solution:

<html>

<title>

IT Solutions

</title>

<body>

<h1><b>Welcome to IT Solutions</b></h1>

<br>

<b>Software Supports</b>

<br>

<b>Hardware Supports</b>

<br><br>

You can also email us at <a href=”mailto:itsol@xyz.com”>itsol@xyz.com</a>

</body>

</html>

Question No 2:                                                                                                                           Marks 10

After designing that web page, your next task at XYZ Internationals is to develop a Scientific Calculator for binary operations.  Your supervisor, Mr. A, suggests you to first perform certain binary operations to refresh your concepts for better logic development which involve the following:

1. i)    Convert 110111011 into decimal.
2. ii) Convert 128 into binary.
1. b)  Complete the truth table for following Expression.

AB  (A+C)

 A B C B‘ A B‘ A+C A B‘ (A+C) 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1

Solution:

a)     i)    Convert 110111011 into decimal.

Ans:

ii)   Convert 128 into binary.

Ans:

 2 128 2 64 0 2 32 0 2 16 0 2 8 0 2 4 0 2 2 0 1 0

so 128 in binary would be 10000000

b)  Complete the truth table for following Expression.

AB  (A+C)

 A B C B’ A B’ A+C A B’ (A+C) 0 0 0 1 0 0 0 0 0 1 1 0 1 0 0 1 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 1 1 1 0 1 1 1 1 1 1 1 0 0 0 1 0 1 1 1 0 0 1 0