Computer Arithmetic and Storage Fundamentals Bcom 1year 2u
Computer Arithmetic and Storage Fundamentals Bcom 1year 2u
2. Number Systems
Decimal Number System (Base 10): The system we commonly use in daily
life, where each digit represents a power of 10. It uses digits 0-9.
Binary Number System (Base 2): Used by computers, where each digit
represents a power of 2. It uses only two digits: 0 and 1.
Octal Number System (Base 8): A base-8 system that uses digits 0-7.
Hexadecimal Number System (Base 16): A base-16 system that uses digits
0-9 and letters A-F (where A=10, B=11, C=12, D=13, E=14, F=15).
3. Binary Arithmetic
Binary arithmetic is similar to decimal arithmetic but is based on two digits: 0 and
1. The basic operations include:
3.1. Binary Addition
0+0=0
0+1=1
1+0=1
1 + 1 = 10 (which is 0 with a carry of 1)
Example:
markdown
Copy code
1011
+ 1101
--------
11000
0-0=0
1-0=1
1-1=0
0 - 1: Requires borrowing, similar to decimal subtraction.
Example:
markdown
Copy code
1010
- 0011
--------
0111
0×0=0
0×1=0
1×0=0
1×1=1
Example:
markdown
Copy code
101
× 011
-------
101
101
-------
1111
Binary division follows the same process as decimal division but uses base 2.
Computers store data in binary format using combinations of 0s and 1s. The two
most common types of data are numbers and characters.
Characters (like letters, digits, symbols) are represented using binary codes.
Common character encoding systems include:
5. Storage Fundamentals
Storage refers to the method by which data is saved and retrieved by the computer.
The computer's storage can be categorized into primary storage and secondary
storage.
RAM (Random Access Memory): Volatile memory used to store data that
is being processed. It loses its content when the computer is turned off.
ROM (Read-Only Memory): Non-volatile memory that stores critical
instructions needed to start the computer. Data in ROM cannot be changed.
Hard Disk Drive (HDD): Magnetic storage that can store large amounts of
data at relatively low costs.
Solid State Drive (SSD): A faster, more reliable, but more expensive form
of storage than HDD.
Optical Disks: CDs, DVDs, and Blu-ray disks store data using optical
technology (laser).
USB Drives and Flash Memory: Portable storage devices used for
transferring data between computers.
6. Memory Units
The method of accessing data from storage devices varies depending on the type of
device.
Data can be accessed directly without going through other data. Common in
hard drives and SSD.
Example: Hard disk, where each block of data has a unique address.
8. Data Compression
Data compression is a method used to reduce the size of files so they take up less
storage space and can be transmitted faster. There are two main types:
Lossless Compression: Reduces file size without losing any data (e.g., ZIP
files).
Lossy Compression: Some data is lost in the process, usually used for
images, audio, and video (e.g., JPEG, MP3).
Computers use various methods to detect and correct errors that may occur during
data transmission or storage.
Parity Bit: An additional bit added to data to check whether the number of
1s is even or odd.
Checksum: A value calculated from a data set, used to check the integrity of
the data after transmission.
Error-Correcting Codes (ECC): Codes that allow both the detection and
correction of errors.
Conclusion
These notes will help BCom 1st Year students understand the key concepts in
Computer Arithmetic and Storage Fundamentals. Let me know if you need any
additional details or explanations!
4o