264 Chapter 8 High-Level Programming Languages Summary An assembler translates an assembly-language program into machine code. A compiler translates a program written in a high-level language into either assembly language (to be later translated into machine code) or into machine code. An interpreter is a program that translates the instructions in a program and executes them immediately. An interpreter does not output machine-language code. There are four models of high-level programming languages: procedural (imperative), functional, logic, and object-oriented. The imperative model describes the processing to be done. The functional model is based on the mathematical concept of a function. The logic model is based on mathe-matical logic. The object-oriented model is based on the concept of inter-acting objects, each taking responsibility for its own actions. A Boolean expression is an assertion about the state of a program. If the assertion is true, the Boolean expression is true. If the assertion is false, the
This is the end of the preview. Sign up
access the rest of the document.