answersLogoWhite

0


Best Answer

A procedure, or function, is a set of specific instructions executed one after the other. The data was quite separate from the procedures, and the trick in programming was to keep track of which functions called which other functions, and what data was changed. To make sense of this potentially confusing situation, structured programming was created.

The principle idea behind structured programming is as simple as the idea of divide and conquer. A computer program can be thought of as consisting of a set of tasks. Any task that is too complex to be described simply would be broken down into a set of smaller component tasks, until the tasks were sufficiently small and self-contained enough that they were easily understood,which is also called as dividing complex program into separate modules


by kk,burla

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

Procedural programming generally flows from one statement to the next, with occasional jumps and loops handled with goto statements. As the amount of code and complexity increases, the end result is code that is extremely difficult to read and maintain, known as spaghetti code. Assembly language and the resultant machine code are both examples of procedural languages.

Structured programming introduces looping structures (for, while, do..while) with orderly breaks, and procedure calls which allow code to branch and return to the caller, rather than simply jump to arbitrary code never to return. There is much less need for goto statements which ultimately makes code that much easier to read and easier to maintain.

Object-oriented programming extends structured programming by combining data and the methods that operate upon that data into a single entity, known as an object. The object fully encapsulates all the functionality required to manipulate its data and exposes a clearly defined interface, hiding the implementation from the consumer. Thus it is only necessary to know what an object does, not how it does it. The benefit is that the underlying implementations can be altered without affecting the consumers. New objects can be derived from existing objects, reducing the need to duplicate code. This ultimately reduces the overall complexity, making code that much easier to both read and maintain, allowing programmers to produce more highly complex programs with much less effort than would be required with structured programming alone.

Regardless of the language used, the end result is machine code that is still regarded as spaghetti code. However, the high-level structured language used to produce that code makes it that much easier to maintain. Modern compilers are fully-aware of all the tricks employed by assembly programmers to improve efficiency, thus programmers can concentrate on producing efficient source code rather than worrying too much about any inefficiencies in the resulting machine code.

Java is an object-oriented language, however it produces byte code which is suitable for the Java virtual machine. Since the byte code must be interpreted, it is much less efficient than the machine code produced by C++. However, the advantage is that Java is highly portable with a single compilation, whereas C++ must be compiled separately for each supported architecture.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between procedural and structured programming language in vb?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What type of language c?

It is a structured, procedural, high level programming language.


What is the difference structured programming language and java?

There is no difference between procedural programing language & structure programing language


Short note on structural programming and procedural programming?

There is no difference between procedural programing language & structure programing language.


What is the difference between program language and procedural language?

programming language is of two type 1. procedural programming language 2.non procrdural programming language .. ----non procedural programming language means that which relates with the real world.. for example-oops oops is a non procedural programming language because it relates to the object and object relate to the natural or real world where as that languge which does not belong to the real world is known as procedural language


What is BCPL?

BCPL (Basic Combined Programming Language) is a procedural, imperative, and structured computer programming language designed by Martin Richards of the University of Cambridge in 1966.


When was pascal programming language invented?

quote: Pascal is an influential imperative and procedural programming language, designed in 1968/9 and published in 1970 by Niklaus Wirth as a small and efficient language intended to encourage good programming practices using structured programming and data structuring.


How c plus plus is a procedure based language?

C is both. The characteristics of a procedural oriented language: assignment operators (:= in C) The characteristics of a structured programming language: block of codes ({} in C) for if-else, while-, for- loops, subroutines, etc.


Difference of c plus plus and fox pro?

C++ is a generic, general purpose, object-oriented, structured programming language used to produce native machine code programs. FoxPro is a procedural language and Database Management System (DBMS).


What is PLSQL?

The Oracle Corporation's application development language is PL/SQL. It is a superset of SQL that uses standard programming-language to supplement the SQL. PL/SQL stands for Procedural Language/Structured Query Language.


Example of procedural programming language and object oriented programming language?

example of procedural programming are those programming language that have structure e.g basic,fortran,c++,c and pascal e.t.c


Is java example of a procedural programming language?

No.Its purely object oriented programming language


Is C programming procedural or object oriented?

C is a weakly typed procedural programming language. For object oriented programming languages near C, you can look at ooc ( http://ooc-lang.org/ ), C++, D, and Java.