Skip to main content

POP


Procedure Oriented Approach


 High level languages provide easy approach to the users in developing their logic to solve any problem with the help of a computer.These languages are machine independent. We can develop and understand program logic without much knowledge about the computer's architechture. Conventional programming using high level language such as BASIC, COBOL, FORTRAN and C are commonly known as Procedure Oriented Programming(POP).The procedure oriented programming allows the users to develop their logic by applying a number of functions that would enable program productivity.



In procedure oriented programming language system,many instructions are written to carry out any task.These instructions are gropued together to form functions.We concentrate on more functions rather than data items to develop program logic.



When we deal with a program containing many functions, important data items are applied globally to be used by all the functions, whereas,a function may contain its own local data to deal with logical situations.



In this system the global data are loosely attached to the functions. They keep floating throughout the program.In order to make any changes in the function you may need to reschedule the associated data values.This may affect the normal sequencing of the programming logic.



Hence,in Procedure Oriented Programming system,the emphasis is on the functions rather than the Data Items.



Characteristics of Procedure Oriented Programming



 1.Emphasis is on functions(logical step)

 2.Functions share global data.

 3.Data Values can keep on floating from one function to another.

 4.It uses the top down approach of programming.



Limitations of Procedure Oriented Programming(POP)



 !.As data values are global to all the functions, you may require to make necessary       changes in all the functions due to any change made in the data values.

 2.It is not suitable to solve complex problems in real situations.









Popular posts from this blog

PRONIC NUMBER

https://traffboost.net?ref=193631 PRONIC NUMBER import java.util.Scanner; class pronic_number {     public static void main(String args[])     {         Scanner s= new Scanner(System.in);         int num,ans=0;         System.out.println(" Enter a number ");         num=s.nextInt();         for(int i=0;i<num;i++)         {             if(i*(i+1)==num)             {                 ans=1;                 break;             }         }         if(ans==1)         System.out.println(" Entered number is a pronic number ");         else         ...

PRIME NUMBER

PRIME NUMBER import java.util.Scanner; class prime {     public static void main(String args[])     {         Scanner s= new Scanner(System.in);         int a,b,c=0;         System.out.println("Enter the number");         a=s.nextInt();         for(b=1;b<=a;b++)         {             if(a%b==0)             c+=1;         }         if(c==2)         System.out.println(a+" is a prime number");         else         System.out.println(a+" is not a prime number");     } }

CO-PRIME NUMBERS

CO-PRIME NUMBERS import java.util.Scanner; class CoPrime {     public static void main(String args[])     {         Scanner sc=new Scanner(System.in);         int a,b,min,hcf=1,i;         System.out.println("Enter two numbers ");         a=sc.nextInt();         b=sc.nextInt();         min=a<b?a:b;         for(i=1;i<min;i++)         {             if(a%i==0&&b%i==0)             {                 hcf=i;             }         }         if(hcf==1)         System.out.println(" The numbers are CoPrime ");         else         System.out.println(" The...