Oct 28, 2019

DIGITAL SIGNAL

analog and digital signal
digital signal


DIGITAL SIGNAL:

  Digital signal are not continuous, but it is discrete time signal and having only two state 1 and 0 or on and off. It use binary number to proceed and execute, where binary number is finite 1 and 0. It represents the info in the form of bit. Digital signal described with bit rate and bit interval. Digital signals are safe to noise so it hardly force nay distortion in signals. 
Example: of digital signal is all the digital device work on digital signal like digital watch, digital calculator and computer etc.
Definition of the terms that described digital signal.

Bit Interval

  Bit interval described the time required to bending a single bit.

Bit Rate:

  Bit rate represent the frequency of bit interval.

Characteristic of digital signal:

   As mention above that digital signal is a discrete signal which have only to state high and low high means 1 or On where low state take as 0 or Off.  From them the increasing edge is called leading or Rising edge as shown in figure.
analog and digital signal
digital signal characteristic

  The time require to complete distance between one rising/leading edge and another rising edge is called time period that denoted by T. The distance between one rising edge and falling edge can be taken as 1 or On and distance between one falling edge and rising edge can be taken as 0 or Off.


ADVANTAGES OF DIGITAL SIGNAL:

Some important advantages are given bellow.
  Ø  Digital signals are less expensive.
  Ø  More reliable.
  Ø  Easy to manipulate.
  Ø  Efficient and reliable to transmit and proceed.

DISADVANTAGES OF DIGITAL SIGNAL:

Some disadvantages of digital signals facing when digital signal are transmit.
  Ø  Digital signal found sampling error.
  Ø  Digital communication required greater bandwidth.
  Ø  It needs circuit to change digital to analog and analog to digital signal.



Oct 26, 2019

ANALOG SIGNAL


analog signal definition, analog and digital signals
analog signal

ANALOG SIGNAL:

  “Analog signal is a kind continuous wave signal that changes maximum time its value. Quantity is one having continuous values most things that can be measured quantitative appear in nature in analog. Analog signal use decimal number system to process.” 
Analog signal is described using amplitude, time period or frequency and phase amplitude marks the maximum height of the signal. An analog system has infinite range of value.

For example: The air temperature changes over a continuous range of value when it changes it value form 20 C to 30 C during given day. It do not change its value instantaneous from 20 to 30 it take all infinite value between them to reach maximum.
Other examples are time, pressure, distance and sound etc.

ADVANTAGES OF ANALOG SIGNAL:

           ·         Use less bandwidth
           ·         Signals are more accurate

DISADVANTAGES OF ANALOG SIGNAL:

           ·         The effect of random noise can make the signal loss and distortion.
           ·         When the signal comes with noise and distortion then it is impossible to recover original

Definition of the terms which described an analog signal.

TIME PERIOD:

  The time required to complete one cycle of a wave signal. It is denote by ‘T’.

FREQUENCY:

  The rate of change in time period or the reciprocal of the time period. Rate of change in T means how many cycles complete in one second.
F= 1/T and also T=1/f

AMPLITUDE :

The maximum distance move by a point on the vibrating body. Where phase amplitude marks the maximum height of signal.
analog signal meaning and definition
analog signal features
DUTY CYCLE:

  Duty cycle is the ratio of on time and the pulse width of the time period. This is denoted by D.C, Where %D.C is equal to
                                        %D.C =    tw / t on   x 100

                                                              T
digital signal duty cycle
duty cycle 
%D.C =   25  x 100
     150
%D.C = 16.7

EXAMPLE OF ANALOG SIGNAL:

examples of analog and digital signals
examples of analog signal
  Some analog signal examples are
         *  Analog Audio Signal
         *  The instantaneous Voltage Signal
         *  Heart Beat Signal
         *  Air Temperature
         *  Speed Reading  Meter in vehicles.
         *  Wave 
         


           Download PDF file of analog signal page
analog signal definition
analog signal pdf
     


Oct 20, 2019

Subject and Predicate

What is Subject and Predicate:

what is subject and preicate,Predicate of a sentence
subject and preicate
 Before we explaining the subject and predicate, we are try to understand basic of sentence as per English rule what is sentence, combination of subject and predicate before this whats make a sentence, as you know a sentence is form when multiple of word is combined with some specific rule. that may give a complete sense ar may not but that is called sentence when mulitiple of words come together to make a sentnce like this.
what is sentence
what is a sentence
  And also a word is found when alphabets come together like this,
what is a word
what is a word
  Now after word sentence we come to our main points and trems what is subject and predicate.

SUBJECTS:

  A subject in a sentence is the part of sentence, which names the person or thing. actually it is a noun or pronoun is known as subject.

PREDICATE:

 Part of sentence , that contain information about subject is called predicate. Basically predicate says about subject such as what is subject, what subject doing, means it give information about subject.

SENTENCE:

 As expalianed what is sentence above, that is sentence is formed when multiple word combine together to give a sense. But we can define sentence in this way also that,
" sentence is the combination of subject and predicates."
what is sentnce,subject of a sentence.predicate of a sentnce
subject of a sentence

SUBJECT AND PREDICATE EXAMPLES:

Identify the subject and predicate form the following sentences.

1. John goes to school.
2,.The horse running on road.
3. She is a good girl.
4. My mother cocked food for me.
5. They are enjoying the movie scene.
6. Toronto is the capital city of Canada.
7. He is interested in reading books.

Subject
Predicate
John
goes to school.
The horse
running on road.
She
is a good girl.
My mother
cocked food for me.
They
are enjoying the movie scene.
Toronto
is the capital city of Canada.
He
is interested in reading books.
  

 
 

Oct 14, 2019

CONDITIONAL STATEMENT (if, if-else, else if)

THE DECISION CONTROL STATEMENT:

“The decision control statement also known as conditional statement which used in program to check the condition between vales and run statement and block of statement on the basis of that condition”.
  In C and C++ the beginning programs are sequential and that execute normally one line after another. But in some circumstance we have to execute some instruction on the basis of some condition if the condition become true then the instruction or block of code has to run otherwise not.  Now here we use decision control statement and the program falls in the conditional statement program type.
  Basically the compilers use three major decision making instructions. Which are,
           a.       If statement
           b.      If- else statement
           c.       Switch statement
 Else-if clause also used. Less popular structure also use for decision making which is conditional operator.

IF STATEMENT:

 A conditional statement instruction which execute a statement or block of statement depending on whether the expression in conditions is true or not “.   
The first and the popular decision making instruction which is used when only condition to be check.

SYNTAX:

  The general form of if statement look like this,
If (condition)
  {
    Execute this ;
  }

Note: The condition following the keyword if statement is always enclosed in a pair of parenthesis.  Where if the condition became true then the instruction is execute under the control of if statement otherwise instead the program skip past it. Also if only one statement is execute under control of if statement then no need to enclosed the statement in pair of braces.
  But how do we express the condition in C? As by general rule we use relational operators to express the condition. The relational operator allows us/C to compare between two values. Conditions may be this type see in the table. Let x and y be two variables.

This expression (condition)
Is true if
X==y
X equal to y
x!= y
X is not equal to y
X < y
X is less than y
X > y
X is greater than y
X <= y
X is less then equal to y
X >= y
X is greater than equal to y


Example program:
 #include<stdio.h>
void main (void
{
int a =11;
if (a>=8)
printf (“it is not an octal number”);
getch ();
}

IF ELSE STATEMENT:

The conditional statement which run a statement or block of statement depending on the condition expression, if the condition true then run/execute the statement following keyword if statement otherwise the statements which following the keyword  else statement”.

SYNTAX:

  The general form of if statement look like this,
if (condition)
{
Execute this;
}
else
{
Execute this;
}

Example program:
#include<stdio.h>
void main (void
{
int a =11;
if (a<=7)
printf (“it’s an octal number”);
else
printf(“it’s not  an octal number”);
getch ();
}


         ·         Else-if clause, click to read more 
         ·         Nested if statement,  click to read more
         ·         Switch statement, click to read more
         ·         Programs to explained conditionalstatement, click to read more
if statement in c, if else statement,
conditional statement



      Download page in pdf
 download conditional statement pdf       

Oct 13, 2019

LOOPING


WHAT IS LOOP:

 Loop is a mechanism that allow us to do the task again and again just by writing once”.
  Where looping is the continuous repetition of a statement or a block of statements. But for the  looping some work have to do that's we will have to initialize the loop, put conditions and do increment or decrement to the loop.  

INITIALIZATION:

  Initialization, it is a part of loop in which we initialized the variable that explained that from where the loop will be start. To do this we assigned a fixed value to the variable like suppose a is variable then use a = 0;

CONDITION:

 In this part of loop we explained what the condition at which the loop stop looping. To do this we have to put condition to the variable by considering above example a<=10. This mean the iteration will stop when the given condition become false. Condition can be called as Boolean condition.

INCREMENT/DECREMENT:

  The last part of looping, in which we increase the variable by a fixed value or decrease, this part explained that by end of each iteration how many value will increase or decrease. It can be made by two methods which is
          a.       Pre –increment or decrement operator
          b.      Post –increment or decrement  operator

PRE-INCREMENT OR DECREMENT OPERATOR:
  “This operator increase or decrease the value by one before assigning the value to the variable”. It means that first increase/decrease the value and then assigned the value to the variable.
Syntax:
++variable name   And   -- variable name
For example, suppose a is desired variable now do it.
++ a  or  - - a

POST-INCREMENT OR DECREMENT OPERATOR:
  This operator first assigned the value to the variable and then increase and decrease by one or by given value.
Syntax:
    Variable name ++  Or   Variable-name = Variable name + required value And
    Variable name - -  Or   Variable-name = Variable name - required value
For example, suppose a is desired variable now do it.
For increment (a ++, a = a+5 or a = a+4 etc.)
For decrement (a - -, a=a-5 or a=a-4 etc.)

LOOPING:

  The continuous repetition of any statement or block of statement is called looping”.
   This type of program is come in the iteration statement program type. Where we have three type of statement program type that is.
       1.       Sequential statement
       2.       Conditional statement
       3.       Iteration statement

TYPES OF LOOP:

Three type of method is used for looping.
       1.       For loop
       2.       While loop
       3.       Do while loop
 4.    Foreach loop

FOR LOOP:

  For loop is a control flow statement which is used for repeating a statement or block of statements, when the number of iteration is predefined”.

SYNTAX:
               for (initialization; condition; increment/decrement)
               {
                  Statement or block of statement;
               }
  Note that if only one statement execute under the control of loop no need to write the statement in between braces. Otherwise the statement must enclose in braces.

Example program:
·         Program that print number from 0 to 10.
#include<stdio.h>
void main (void)
 {
   int a;
   for (a=0; a<=10; a++)
   printf (“%d,”, a);
   getch ();
}

WHILE LOOP:

  While loop is a control flow statement use for looping when the number of iteration is not pre-defined “.
  It’s mean that this operator is use when we have to do iteration infinite time. But also it can use for the predefine iteration. Below is an example of this.

SYNTAX:
               initialization;
               while (condition)
               {
                  Statement or block of statement;
                  increment/decrement;
               }

Example program:
 Do above program using while loop.
#include<stdio.h>
void main (void)
 {
   int a;
   a=0;
   while(a<=10)
  {
    printf (“%d,”, a);
    a++;
  }
  getch ();
}


DO-WHILE LOOP:

Do while loop also a control flow statement use for iteration. It executes the block of code at least once”.
   It is used when the statement under control of loop should execute at least once, and then repeatedly execute of the block of statement   or not depending upon the given Boolean condition.

Syntax:
Initialization;
Do
{
Statement or block of statement;
Increment/decrement;
}while(condition);

Example program:
 Do above program using do while loop.
#include<stdio.h>
int main ()
{
  int a;
  a=0;
   do
       {
         printf("\n I love myself");
         a++;
       }while (a<=10);
    getch();
}

FOREACH LOOP:

 The foreach loop in C iterate a block of code on each element in an array or a collection of item”.
Foreach (element in iterate able-item )
{
  Body of foreach loop;
}

NESTED LOOP:

 Loop in a loop is called nested loop
 If in any program loop is used in a loop then that will called nested loop.

Example syntax:
               for (initialization; condition; increment/decrement)
               {
                      for (initialization; condition; increment/decrement)
                        {
                           Statement or block of statement which has to execute under control of for loop;
                        }

                }
 Example program:
  Write a program that prints,
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5

#include<stdio.h>
void main (void)
{
   int a, b;
   for (a=1; a<=5; a++)
  {
     printf(“\n”);
     for (b=1; b <= a; b++)
     printf(“%d”, b);
  }
}

c# for loop, C#while loop, C++for loop, C++looping
Looping in C, C++


 Download Page article in PDF
           


Oct 12, 2019

HISTORY OF PAKISTAN FROM 1857 TO 1947

IMPORTANT DATES AND EVENTS:(From 1857 To 1947)


DATE
EVENT
واقع
تاریخ
ENGLISH
اردو
1857
  • War of independence
  • Extermination Of Bahadur Shah Zafar
جنگ آزادی
بہادر شاہ ظفر کی معزولی
1861
Indian council act
انڈین کونسل ایکٹ
1863
Foundation of Scientific Society in Gaze-Pur
غازی پور میں سائنٹیفک سو سا ئٹی کا قیام
1866
Publication of Ali Grah Institute’s gazette  
علی گڑھ انسٹیٹیوٹ گزٹ کی اشاعت
1867
  • Base Foundation of Dara-ul-Ullum Dewband.
  • Start Urdu- Hindi controversy in Banaras
دارلعلوم دیو بند کا سنگ میل
اردو ہندی تنازعہ کی بنارس میں شروعات
1869
Sir Syed Ahmed Khan’s visit of England
سر سید کا دورہ انگلستان
1869 –1932
Sir Muhammad Shafi
سر محمد شفیع
1870
  • Foundation of Society of Education Progress of Indian Muslim
  • Publication of Tehzeb-ul-Ekhlaq
سوسایٹی آف ایجوکیشن پروگریس آف انڈین مسلم
تہزیب اخلاق کی اشاعت
1872
Foundation of Muhamadan College Committee  
محمدین کالج کمیٹی کا قیام
1876 –1948
Quad-e-Azam Muhammad Ali Jinnah
قائداعظم
1877
Foundation of MAO College Ali Grah
ایم اے او کالج علی گڑھ کا قیام
1877 -1936
Sir Fazal Husain
سر فضل حسین
1877 –1938
Sir Muhammad Iqbal
سر محمد اقبال
1884
Foundation of Anjuman-e-Hemayat-al-Islam Lahore
انجمن حمایت السلام لاھور کا قیام
1885
  • Foundation of Indian National Congress
  • Formation of Business Indian Association
  • Establishment of Sindh Madrasa-tul-Islam  Karachi
انڈین نیشنل کانگریس کا قیام
بزنس انڈین ایسوسی ایشن کی تشکیل
سندھ مدرستہ الاسلام کراچی کا قیام

1886
Foundation of Muhamadan Educational Conference
محمدن ایجوکیشن کانفرنس کا قیام
1892
Indian Council Act
انڈنٓین کونسل ایکٹ
1894
FoundationNadwa-tul-Ullma Lakh know
ندوۃ العلماء لکھنو کا قیام
1897-1951
Choudhry Rehmat Ali
چودھری رحمت علی
1901
Foundation of New KPK province
خیبر پختون صوبہ کا قیام
1905
Bengal partition
تقسیم بنگال
1906
Shimla Deputation
شملہ وفد
1909
Minto Marley reforms
منٹو مرلے اصلاحات
1911
Cancellation of Bengal partition
تقسیم بنگال کی منسوخی
1912 -1913
Balkan war
  جنگ بلقان
1913
  • Foundation of Islamia College Peshawar
  • Quaid-e-Azam joined Muslim League
اسلامیہ کالج پشاور کا قیام
قائداعظم کا مسلم لیگ میں شمولیت
1914
Return of Mahatma Gandhi from South Africa to India
مہاتما گاندھی کی جنوبی افریقہ سے ہندوستان واپسی
1914 -1918
First World War
پہلی جنگ اعظم
1916
Lakhnow Pact
میثاق لکھنو
1919
  • Montagu-Chelmsford Reform
  • Rowlatt Acts
  • Jallianwala Bagh massacre
  • Khilafat Movement
مانٹیگو چمیسفورڈ اصلاحات
رولٹ ایکٹ
جلیان والا باغ کا قتل عام
تحریک خلافت
1920
  • Sureez Contract
  • Visit of Indian khilafat deputation to England
  • Non-corporation movement(NCM)
  • Unity between khilafat movement and Non-corporation 
  • Hijraat Movement
سیوریز کا معاہدہ
انڈین خلافت وفد کا انگلستان کا دورہ
تحریک عدم تعاون
تحریک عدم تعاون اور تحریک خلافت میں اتحاد
 تحریک ہجرت
1921
  • MAO College Ali Grah upgrade to Ali Grah University
  • Mopla Uprising
ایم اے او کالج علی گڑھ کی علی گڑھ یونیورسٹی میں ترقی
موپلا بغاوت
1922
  • The Chauri Chaura incident
  • Mahatma Gandhi end the Non-corporation movement(NCM)
  • Quaid-e-Azam become the president of Muslim League 
 
چوری چورا کا واقعہ
مہاتما گاندھی کا تحریک عدم تعاون کو ختم کرنا
قائداعظم کا ،سلم لیگ کا صدر بننا

1924
On behalf of Kamal Pasha end the khilafat Turkey
کمال پاشا کی ظرف سے ترکی کی خلافت کا خاتمہ
1927
  • Delhi Proposal
  • Simon Commission
دہلی تجاویز
سائمن کمیشن
1928
Nehru Report
نہرو رپورٹ
1929
Quaid’s fourteen points
قائداعظم کا چودہ نکات
1930
Allahabad Address
 خطبہ الہ آباد
1930 –1931
First Civil Disobedience movement
پہلی سول نافرمانی
1930 –1932
Round Table Conference
گول میز کانفرنس
1931
Gandhi Irwin Pact 
گاندھی ارون معاہدہ
1932
Communal Award
کمیونل ایوارڈ
1932 –1934
Second Civil Disobedience
دوسری سول نافرمانی
1933
  • Pakistan National Movement
  • Publication of Now or Never Pamphlet
  • Choudhry Rehmat Ali gives name of Pakistan  
  • Publication of Qurtas Ebbes
پاکستان قومی تحریک
"اب یا پھر کھبی نہیں"پمفلٹ کی اشاعت
چودھری رحمت علی نےلفظ پاکستان کی تخلیق کیا
قرطاس ابیض کی اشاعت
1935
Government of India Act
گورنمنٹ آف انڈیا ایکٹ
1936
Foundation of All India Muslim Student Federation
ال انڈیا مسلم اسٹوڈنس فیڈرنٹس کا قیام
1937
General Election
Resignation of Congress Ministries
عام انتخابات
کانگریسی وزلرتون کی برظرفی
1939
Day of Deliverance (22 Dec)
یوم نجات(22 دسمبر)
1939 –1945
Second World War
دوسری جنگ اعظیم
1940
  • Lahore Resolution about Pakistan
  • August 1940 Britain Government Offer
  • Third Civil Disobedience
  • Publication of Millat And Menace of Indianism pamphlet   
پاکستان کے بارے میں قرداد لاھور
اگست 1940 کی برطانوی پیش کش
تیسری سول نافرمانی
ملت اینڈ دی مینیس آف انڈیا نزم پمفلٹ کی اشاعت
1942
  • Cripps Mission
  • Leave India Movement
کرپس میشن
"ہندوستان چھوردو "تحریک
1944
Jinnah Gandhi Talks
جناح گاندھی مزاکرات
1945
Shimla Conference  
شملہ کانفرنس
1946
  • General Election
  • Delhi Convention
  • Cabinet Mission
  • Foundation of Interim Government  
عام انتخابات
دہلی کنوکشن
کیبنٹ مشن
عبوری حکومت کا قیام
1947
  • Address of Lord Mountbatten (being Viceroy )
  • 3rd June plane
  • Indian Independence Act
  • Creation of Pakistan(Foundation of Pakistan)
لارڈ ماونٹ بیٹن کی بہ حیثت وائسراے تقرری
3 جون کا منصوبہ
آزادی ہند کا قانون
قیام پاکستان

      Download page PDF 
history of pakistan from 1857 to 1947