Skip to main content

What are program design models? How do they work?

Program Design Model 

Programmers use many instructions in writing programs. Solve the problem by arranging these instructions logically. Long after the program is written, it is often difficult for the programmer to understand his own written program. Therefore, various programming approaches are currently in use for writing programs in order to increase the comprehensibility of the program. Below is a brief description of them:

Structured Programming: A set of instructions used to solve a problem is called a program. If the problem to be programmed is very complex then the number of instructions used in the program is very high. When the program gets big, it becomes buggy and runs into various problems. In these cases, a structured program has to be used. Statements used in a structured program perform their own tasks from within their respective classes. Return control to the main body by executing operations from the main body of the program using various class statements. Structured programs should be periodic and decisive. The basic idea of ​​a structured program is to divide a large program into smaller parts, each of which is called a sub-program. Structured programs have a main program to control the sub-programs used. Examples: Qbasic, Fortran, Pascal etc.

Visual Programming: With the development of computers, the trend of working on Graphical User Interfaces is increasing among users. Nowadays, all kinds of application programs, starting from operating systems, are now image-based. Instead of colour-based monotonous interfaces, there is a growing demand for interfaces with different colour images. Having the opportunity to use visual cues in the work environment greatly benefits the user. Considering these aspects, currently, programming languages ​​are being improved. It also creates a convenient interface for the user along with the functions of the program. Presently, visual programming languages ​​such as Visual Basic, Visual C, Visual Fox Pro, etc. have brought the facility of creating user interfaces with scrollbars, dialogue boxes, text boxes, etc.

Object-Oriented Programming: All program languages ​​that create a variable by combining code and data are called object-oriented programming languages. Usually, the combined form of code and data is called an object. Once the code and data are combined, the object acquires its own identity. Then the user doesn't need to know how the object works. Objects perform tasks on their own if the user provides appropriate data. Any object can be stored in memory for use in another program. In short, an object-oriented program is a collection of objects that each have their own characteristics.

Object Oriented Programming is a visual programming methodology. Generally, the control of the program is entrusted to the user. Program execution is done by working together with the core coding of the program and the user controls. Before the advent of visual programming, user controls were colour-based. Visual programming provides an interface with several facilities to the user. Like check box, command button etc. Basically, a computer user works with the help of these. In addition to the currently provided controls, modern programs also offer the user the ability to create their own controls. Like C++, Visual C++, Java etc. The characteristics of object-oriented programs are --

(1) polymorphism

(2) inheritance and 

(3) encapsulation.

Event-Driven Programming

Event-Driven Programming uses a graphical interface in programming. In this type of programming, when the user instructs the computer with the help of a keyboard or mouse in various parts with the help of a graphical interface, it is called an event. When a command button is clicked by the mouse, its associated actions are performed. These functions are called procedures. Event Dryden like Procedural Programming


Characteristics of a Standard Program:

Programming is required to perform tasks that cannot be performed using conventional application software. A programmer has to have a clear and practical understanding of the programming language or it is impossible to write ideal programs. Also, a programmer needs to be well aware of the purpose of programming. An ideal program should have the following features.


(1) The program should be as short as possible.

(2) Variables and constants used in the program must be declared at the beginning of the program.

(3) Excessive loops in the program should be avoided.

(4) Flowcharts and algorithms used for the program should be extremely simple.

(5) Variable names used in programs should be meaningful.

(6) Appropriate programming language should be selected for the particular task.

(7) Selecting the appropriate algorithm for a particular task.


'C' Programming Language: C is a type of high-level language. It is a structured programming language. US Bell Labs programmer Dennis Ritchie created the C programming language in 1970. At first, the C programming language had to be used in the Unix operating system for the PDP-11 computer. The Unix operating system was later rewritten by C. Currently, C programming language is used to control various computers and various operating systems.

Primary Concept Due to the popularity of C, various software companies develop C compilers. Some common compilers are Turbo C, Borland C, Microsoft C etc. There are minor differences between these versions of C. With few exceptions, programs written in one version can be executed in another version. More than 90 per cent of compilers and operating systems in use today are written in C language. The use of a function called Main is essential in C programs. Program execution starts from this function.


The process to start a C program: Most C compilers have their own advanced source editor, where C source files can be created easily and beautifully. The Turbo C compiler has an integrated environment called the Turbo C IDE (Integrated Development Environment). To run the IDE, the TC.Exe file is run from the BIN subdirectory of the C compiler directory. Then select New from the File menu to write the program. Whether a new file is opened as NONAME00.CPP or NONAME00.C is specified in the Environment submenu Editor option of the compiler's options menu. This option can be changed if necessary.

C programming language has the following features:

1. In the C programming language header file is mentioned at the beginning of every program.

2. The main() function should be written after the header file.

3. Instructions used by the program must be enclosed in second parentheses ( ).

4. Comment line used by the program should be given // at the beginning. If the comment is multiple lines. /* and */ must be enclosed within these symbols.

5. Statements in the C program language must be in English lowercase.

6. It has the convenience of using various library functions.

7. C programming language is not machine dependent.


Program Compile:

After creating the source program, its execution has to be done in two steps; Namely:

(1) (.obj) file is created when the program is compiled (Alt+F9).

(2) When the program is executed (Ctrl+F9) (.exe) file is created.

* Monitoring program results

Press F7 to trace the source program step by step. So press Ctrl+F2 to stop monitoring the program.

Comments

Popular posts from this blog

What should the processor look at?

The things that we all should keep an eye on are the processor or not; 1. Clock speed 2. Number of course 3. cache memory 4. FBS 1. Clock Speed: It is also called GH2. All processors are written on. Clock speed means how fast your computer can work. That's what this signal means. The speed of the processor is known through this clock speed, how fast the calculation can be done. 2. Number of Cores: The more cores the processor has, the faster the processor can work. If I give an example to explain the matter, I hope you can understand it very easily. Suppose if a person had many hands, then he could do many things at the same time. That is, if we go to the market and buy a smartphone, then we will see what the configurations of the phone are. If we look closely at the configuration of the smartphone, we will see that Dual Core Processor, Quad Core Processor, Octa core processor, Hexa core processor, Deca core processor. This means that the dual core processor has two arms or cores, ...

How to create a google account from a Android mobile?

 I don't believe a long introduction. I don’t want to bore you.  Today I will teach how to create a google account very flexibly from an android device.  Firstly open a browser like Opera, Firefox, Google Chrome or any other it doesn't matter in that and then type create a Gmail account or  click here After clicking here then click on  create an account  option. Write here your first name and last name exactly. Then write an email address uniquely which did not use in the network or google database. After completing the write a unique email address subsequently you will write a password like  @hga34#@ !. This password format is very effective and efficient against brute force or any other intelligence attack. Now click on the next button  Select your country from here      Enter your mobile number in the orange colour selected blank field. Now enter a recovery email address in the selected field. Anytime if your email address passwo...

What is transmission media? Introduction to different types of data transmission cables

Transmission media: When a PC communicates or wants to communicate with another PC, it has to take the help of some transmission media. The most commonly used media in the network are twisted pair cable, coaxial cable, fiber optic cable. Nowadays, the use of optical fiber is increasing greatly. Radio wave, microwave and infrared technologies are prominent among wireless media. Among these mediums, optical fiber has the highest data transfer speed. The type of medium used in a network depends on the type and location of that network. The connection system for exchanging information between the sender and the remote receiving end is called a channel. The means or methods used to implement the channel are called media. such as-- (i) Cable or wire. (ii) Common telephone lines. (ii) Radio waves. (iv) Microwave. (v) Geo-satellite systems etc. Cable or Wire: Cable is an important medium in data communication. Cables are generally used for data transfer over short range networking such as LAN...