Course Code Course Title Assignment Number Maximum Marks Weightage Last Dates for Submission : MCS-012 : Computer Organisation and Assembly Language Programming : MCA(1)/012/Assign/2014-15 : 100 : 25% : 15th October‚ 2014 (For July 2014 Session) 15th April‚ 2015 (For January 2015 Session) Perform the following arithmetic operations :Using binary signed 2’s complement notation for integers. You may assume that the maximum size of integers is of 9 bits including the sign bit. (Please note that the
Premium Binary numeral system Elementary arithmetic Decimal
PALINDROME #include <stdio.h> #include <string.h> int main() { char a[100]‚ b[100]; printf("Enter the string to check if it is a palindrome\n"); gets(a); strcpy(b‚a); strrev(b); if( strcmp(a‚b) == 0 ) printf("Entered
Premium Prime number Natural number Decimal
Assignment Introduction I am Zeeshan Ali; I am working as a Computer teacher for Classes VI-X-M in Canal Side Boys Campus. I have done Masters in Computer Science (MCS) from Punjab University College of Information and Technology (PUCIT) Lahore. The students are the main focus of every teacher and our entire teaching efforts circle round our students to achieve the set targets. Effective Teaching includes many useful teaching strategies that a teacher chooses according to the requirement of his/her
Premium Hexadecimal Binary numeral system Education
NUMBER SYSTEM Definition It defines how a number can be represented using distinct symbols. A number can be represented differently in different systems‚ for instance the two number systems (2A) base 16 and (52) base 8 both refer to the same quantity though the representations are different. When we type some letters or words‚ the computer translates them in numbers as computers can understand only numbers. A computer can understand positional number system where there are only a few symbols
Free Hexadecimal Binary numeral system Decimal
CPEN 214 - Digital Logic Design Binary Systems C. Gerousis © Digital Design 3rd Ed.‚ Mano Prentice Hall Digital vs. Analog • An analog system has continuous range of values – A mercury thermometer – Vinyl records – Human eye • A digital system has a set of discrete values – Digital Thermometer – Compact Disc (CD) – Digital camera Benefits of using digital Analog signal Digital signal • Advantages of using Digital: • Cheap electronic circuits • Easier to calibrate and adjust • Resistance
Premium Binary numeral system Hexadecimal Decimal
Digital Electronics‚ 2003 BINARY CODED DECIMAL: B.C.D. • ANOTHER METHOD TO REPRESENT DECIMAL NUMBERS • USEFUL BECAUSE MANY DIGITAL DEVICES PROCESS + DISPLAY NUMBERS IN TENS IN BCD EACH NUMBER IS DEFINED BY A BINARY CODE OF 4 BITS. *** 8 – 4 – 2 – 1 MOST COMMON CODE 8 – 4 – 2 – 1 CODE INDICATES THE WEIGHT OF EACH BIT 23 – 22 – 21 – 20 E.G. 934 = 1001 0011 0100 9 3 4 FOR EACH DIGIT A BINARY [NORMAL] CODE IS ALLOCATED. OHER REPRESENTATION FORMS ARE 2-4-2-1 AND EXCESS-3 Ovidiu Ghita Page
Premium Binary numeral system Hexadecimal Decimal
The binary numeral system‚ or base-2 number system‚ represents numeric values using two symbols‚ 0 and 1. More specifically‚ the usual base-2 system is a positional notation with a radix of 2. Because of its straightforward implementation in digital electronic circuitry using logic gates‚ the binary system is used internally by almost all modern computers. Why Computers Use Binary Binary numbers – seen as strings of 0’s and 1’s – are often associated with computers. But why is this? Why
Premium Binary numeral system Decimal Hexadecimal
Binary Number System: Conversion of Decimal number to Binary number: Set up the problem. For this example‚ let’s convert the decimal number 15610 to binary. Write the decimal number as the dividend inside an upside-down "long division" symbol. Write the base of the destination system (in our case‚ "2" for binary) as the divisor outside the curve of the division symbol. Write the integer answer (quotient) under the long division symbol‚ and write the remainder (0 or 1) to the right of the
Premium Binary numeral system Decimal Hexadecimal
Lab 1.1: Reading Binary I. 2 2 2 2 2 2 2 2. You use the method of subtraction‚ if you can subtract the number that corresponds with the value you “2” you are dealing with you need to place a 1 under the 2 that corresponds with the number you are subtracting. This is like saying yes the number works. If it doesn’t subtract you place a zero underneath the “2” that you are dealing with‚ this is like saying “no” it doesn’t represent anything. That is the basic formula for doing binary
Premium Decimal Computer Binary numeral system
Homework Labs 1.1 - 1.4 Thursday 8:30-12:30 6/25/2013 Exercise 1.1 Base 10 Mapping for decimal number 2931 10^3 10^2 10^1 10^0 2 9 3 1 2x1000=2000 + 9x100=900 + 3x10=30 + 1x1=1 = 2931 Exercise 1.1.2 Mapping for binary number 110 base 2 4 2 1 * * * 1 1 0 = = = 4 + 2 + 0= 6 Exercise 1.1.3 Mapping for binary number 11 base 2 2 1 * * 1 1 = = 2 + 1= 3 Exercise 1.1.4 Mapping for binary number 10010 base 2
Premium Binary numeral system Hexadecimal Decimal