We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>
+ Link For Assignments, GDBs & Online Quizzes Solution 
+ Link For Past Papers, Solved MCQs, Short Notes & More 
Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion
How to Add New Discussion in Study Group ? Step By Step Guide Click Here.
Instructions:
Question No 1: Marks 5
Distinguish the following as: input, output, processing, communication and storage devices:
Question No 2:
Marks 10
Convert the following:
a) (410)_{10} decimal number into its equivalent binary number (5 Marks)
b) (101101)_{2} binary number into its equivalent decimal number. (5 Marks)
Note: Show all the steps needed for the conversions, otherwise marks will be deducted.
Tags:
+ How to Follow the New Added Discussions at Your Mail Address?
+ How to Join Subject Study Groups & Get Helping Material? + How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators? + VU Students Reserves The Right to Delete Your Profile, If?.
+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)
+ Click Here to Search (Looking For something at vustudents.ning.com?) + Click Here To Join (Our facebook study Group)Replies are closed for this discussion.
Binary number(value):1 0 0 1 0 0 0 1
Index :7 6 5 4 3 2 1 0
you only have to make one loop which will do like this = (pow(2,0)*(value at this index) + pow(2,1)*(value at this index) + pow(2,2)*(value at this index) + pow(2,3)*(value at this index) + ....) where 0,1,2,3 are index
anther
In order to help you to understand how to convert binary to decimal, it may help to look at how we translate the value of a decimal number. Lets use the decimal number 1234 (1234_{10}, or onethousand, twohundred and thirtyfour) as an example:
A  Power of 10:  10^{3}  10^{2}  10^{1}  10^{0} 
B  Place value (A result):  1000  100  10  1 
C  Entered decimal digit:  1  2  3  4 
D  Product of B * C:  1000  200  30  4 
E  Cumulative total of D:  1000  1200  1230  1234 
With the above base 10 translation in mind, here is how you would convert the base 2 number 1111 (1111_{2} or oneoneoneone) into a base 10 number:
A  Power of 2:  2^{3}  2^{2}  2^{1}  2^{0} 
B  Place value (A result):  8  4  2  1 
C  Entered binary digit:  1  1  1  1 
D  Product of B * C:  8  4  2  1 
E  Cumulative total of D:  8  12  14  15 
As you can see, converting a binary number to a decimal number is a simple process of identifying the place value of each digit, multiplying each digit by its place value, and then adding up all of the products.
If the base 2 you want to convert has a decimal point in it, you simply continue subtracting 1 from each exponent (line A below) as you move from left to right. For example, here is how you would convert 111.101_{2} into its base 10 equivalent:
A  Power of 2:  2^{2}  2^{1}  2^{0}  2^{1}  2^{2}  2^{3} 
B  Place value (A result):  4  2  1  0.5  0.25  0.125 
C  Entered binary digit:  1  1  1  1  0  1 
D  Product of B * C:  4  2  1  0.5  0  0.125 
E  Cumulative total of D:  4  6  7  7.5  7.5  7.625 
So you see, in a binary number each place value to the right of the decimal point decreases by 1/2 (> 1/2, 1/4, 1/8, etc.) as opposed to the place values to the left of the decimal point whose values double with each place you move to the left (8, 4, 2, 1 <).
With that, let's use the Binary to Decimal Converter to convert base 2 to base 10.
CS101_Assig#01_Solution
Input Devices 
Output Devices 
Input Output (I/O) 
Processing Devices 
Communication Devices 
Storage Devices 
Microphone 
Speakers 
Modem 
CPU 
Modem 
CD/DVD disc 
Digital Pen 
Multimedia Projector 
USB flash drive 

Network Adapter 
USB flash drive 
Touch pad 

Network Adapter 









Q :2 (a) Convert (410)10 decimal number in to its Binary number :
Soloution :
Decimal to Binary Conversion
2 410 ( remainder)
2 205 0
2 102 1
2 51 0
2 25 1
2 12 1
2 6 0
2 3 0
2 1 1
0 1
We keep dividing 410 by 2 till the last value becomes 0. After that we shall neglect the 1^{st} two columns & start counting from 3^{rd} column from bottom to top. The answer is (110011010)2
(b) (101101)2 Binary to Decimal Conversion :
(101101)2 = 1 × + 0 × + 1 × + 1 × + 0 × + 1 ×
= 1 × 1 + 0 × 1 + 1 × 4 + 1 × 8 + 0 × 16 + 1 × 32
= 0 + 0 + 4 + 8 + 0 + 32
= 45
The answer is (45)10
Correction please
1 x 1 = 1
You are writing 1 x 1 = 0 even than you showed the answer 45
it must be syntax error.. Right.
good observation
One more
CS101_Assignment#01_Solution
In computing, input/output or I/O is the communication between an information processing system (such as a computer) and the outside world, possibly a human or another information processing system. Inputs are the signals or data received by the system, and outputs are the signals or data sent from it. The term can also be used as part of an action; to "perform I/O" is to perform an input or output operation. I/O devices are used by a person (or other system) to communicate with a computer. For instance, a keyboard or a mouse may be an input device for a computer, while monitors and printers are considered output devices for a computer. Devices for communication between computers, such as modems and network cards, typically serve for both input and output.
In computing, input/output or I/O is the communication between an information processing system (such as a computer) and the outside world, possibly a human or another information processing system. Inputs are the signals or data received by the system, and outputs are the signals or data sent from it. The term can also be used as part of an action; to "perform I/O" is to perform an input or output operation. I/O devices are used by a person (or other system) to communicate with a computer. For instance, a keyboard or a mouse may be an input device for a computer, while monitors and printers are considered output devices for a computer. Devices for communication between computers, such as modems and network cards, typically serve for both input and output.
Complete CS101 Assignment No 1 Solution Fall 2012
© 2020 Created by + M.Tariq Malik. Powered by
Promote Us  Report an Issue  Privacy Policy  Terms of Service
VU Students reserves the right to delete profile, which does not show any Activity at site nor has not activity more than 01 month.
We are usergenerated contents site. All product, videos, pictures & others contents on vustudents.ning.com don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com or Contact us at contact Page with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List  Moderators Group
All Members  Featured Members  Top Reputation Members  Angels Members  Intellectual Members  Criteria for Selection
Become a Team Member  Safety Guidelines for New  Site FAQ & Rules  Safety Matters  Online Safety  Rules For Blog Post