program logic
program logic
[′prō·grəm ‚läj·ik] (computer science)
A particular sequence of instructions in a computer program.
McGraw-Hill Dictionary of Scientific & Technical Terms, 6E, Copyright © 2003 by The McGraw-Hill Companies, Inc.
program logic
Instructions in a program arranged in a prescribed order to solve a problem. Give a requirement to several programmers, each is likely to create different program logic. As long as the program works, it may not matter. What will matter is the clarity of the logic when someone else has to modify the code later on.
Program logic is the implementation of the program's requirements and design. If the design of the application is bad, the program logic can nevertheless be professionally implemented. For example, if the user interface is poorly conceived, the program logic can execute that second-rate interface very efficiently.
Calculate, Compare and Copy
Programmers write programs that calculate, compare and copy the data brought into RAM. Decision making is accomplished with the compare and branch instructions (if this, go there). In a high-level language, the IF-THEN-ELSE statement is used. See computer and if-then-else.
Go To
Program logic zigs and zags all over the place, and the Go To instruction causes the computer to jump to a different part of the program in RAM. Repetition is common in program logic; for example, keep scanning the input until you find "xyz." In high-level languages, DO LOOPS and FOR LOOPS accomplish this repetition. See loop.
 |
| Interactive Apps |
|---|
| User applications are interactive and "event-driven," whereby a mouse click or screen tap is an event communicated to the application to take appropriate action. |
 |
| Batch Processing |
|---|
| Behind-the-scenes business applications process a group of transactions all at once at the end of some period. They are not interactive and only require the operator to start the program. The application calls the OS to perform all input and output. |
Copyright © 1981-2025 by The Computer Language Company Inc. All Rights reserved. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher.
Copyright © 2003-2025 Farlex, Inc
Disclaimer
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.