onkarsinghphotos1977
2 views
9 slides
Mar 02, 2025
Slide 1 of 9
1
2
3
4
5
6
7
8
9
About This Presentation
Hhbhhhyyybhvbv g
Size: 40.11 KB
Language: en
Added: Mar 02, 2025
Slides: 9 pages
Slide Content
Programming for Problem Solving
What is Computer Program? A computer program is a collection of instructions that can be executed by a computer to perform a specific task.
What is Computer Programming? Computer programming is the process of designing and building an executable computer program to accomplish a specific computing result or to perform a specific task.
Program and Programming A computer program is usually written by a computer programmer in a programming language. From the program in its human-readable form of source code , a compiler can derive machine code — a form consisting of instructions that the computer can directly execute. Alternatively, a computer program may be executed with the aid of an interpreter .
SOURCE CODE/HIGH LEVEl LANguage : Understable by human beings MACHINE CODE(Binary code) 0 and 1 /LOW LEVEL LANGUAGE: Understandable by computer
Compiler The name "compiler" is primarily used for programs that translate source code from a high-level programming language to a lower level language (e.g., machine code) to create an executable program.
Interpreter Interpreter is a program that executes instructions written in a high-level language.
Compiler vs Interpreter Interpreter translates just one statement of the program at a time into machine code. Compiler scans the entire program and translates the whole of it into machine code at once.
Programming Cycle in C++ Think about what program is supposed to do. Edit Program (comment program and then write code) Save Program Compile Program Fix Syntax Errors (Go back to Think above) Run/Test Program Fix Logic Errors (Go back to Think above) Run Program