Data Coding Systems
Basic components of the computers
Computer systems consist following units:
Input unit
Central Processing unit
Control Unit
A.L.U(Arithmetic Logic Unit)
Storage unit
Output unit
Key Board
Punch card
Printer
Video Display
1
Data
MA701:FOM
Unit1: Set Function and Relation
MCA-I
Set:
A set is a collection of distinct, symbols unordered objects. Sets are typically collections of
numbers, though a set may contain any type of data (including other sets).The objects in a set are
called
Data Coding System (Number System)
Number Conversion
DECIMAL TO BINARY
1. Convert decimal integer number into binary
Start dividing the number by 2 and continue the process till the
quotient is 0.
Keep reminder aside.
i.e. (25)10
2. Convert decimal frac
Error Correction and Detection Code
When binary data is transmitted and processed. It can be corrupted in passage because
of noise or other.
The 1s may get change in 0s and 0s may get change 1s.
o Types of errors
Single bit error: - In this only bit is
Binary Codes
There are two types of code
1. Weighted Code
2. Non-Weighted Code
1. Weighted Code
If each position of number represent a specific weight then coding schema
called weighted code.
Two types of weighted code
i. 8-4-2-1 Code (BCD Binary Coded
Assignment-1
Basic Program List
Date: 7-8-2012
1. WAP to print HELLO WORLD
2. WAP to print your name
3. WAP to print
HELLO
WORLD
4. WAP to print
HELLO
WORLD
5. WAP to print
*
I AM RACHANA
*
6. WAP to print
nn
nn
/nnn/n/nnn/n
7. WAP to print
*
* *
* * *
*
Complement
Complements are used in digital computers for simplifying the subtraction
operation and for logical manipulation.
There are two types of complements for base r system
1) rs complement
2) (r-1)s complement
Binary number : 2s or 1s complement
Dec
Assignment-2
Programs based on operator
Date: 27-8-2012
1.
2.
3.
4.
5.
6.
WAP to perform arithmetic operation use initialization concept.
WAP to calculate area of circle (Define PI as constant).
WAP to convert a given number of days into months and day.
W
MCA-I
Unit 6: Basic Statistics
FOM
Measures of Central Tendency:
Mean: The mean (also referred as arithmetic mean) is most common measure of central tendency. The
mean is the only common measure in which all the values play an equal role. The mean serves