Introduction to Programming, Categories, definition of terms, types of errors, Pseudo Codes, Algorithms, Flow Charts
Size: 77.15 KB
Language: en
Added: Oct 19, 2025
Slides: 11 pages
Slide Content
CSC 1107: STRUCTURED PROGRAMMING Lecture 1: Introduction to Programming, Categories, definition of terms, types of errors, Pseudo Codes, Algorithms, Flow Charts
Mode of Assessments Problem Based Learning Approach (15%) Assignments & Course Works ( 5 %) Practical Assessments (20%) Examination (60%): - Written Exam (70%), Practical Exam (30%)
References K. Noel; C by Example (2004) C How to Program by Deitel C: A Reference Manual (5 th Edition) by Samuel P. Harbison; Prentice Hall, 2002. Extra Reading Material (eBooks)
Introduction to Programming? Definition of Programming? Is the art of writing computer programs. What is Programming Language? A programming language is a language that a computer can understand and provides a programmer an environment to write and execute programs in it . Examples of Computer Languages C, C ++, Java, Ajax, Fortran, Pascal, Ruby etc
Generations in Computer Languages First Generation : Machine Language, is a language that consists of 1’s and 0’s Second Generation: Assembler language consisting of instructions like LOAD, ADD Third Generation: High level language (HLL) a bit easy to understand e.g. C, C ++, J ava, C obol 4GL: equivalent to human specific language e.g. SELECT NAME FROM RECORDS WHERE NAME=“JOHN”;
Types of Programming Languages Read and make your own notes on the types of programming languages ? Procedural Programming Languages : Object-Oriented Programming Languages : Scripting Programming Languages :
Definition of Key Terms: Syntax: Syntax of a programming language means the rules that dictate how exactly the vocabulary elements of the language can be combined to form statements . Semantics: The semantics of a statement in a programming language define what will happen when that statement is executed. In other words, semantics refer to the meaning of the statement . Program Errors: Errors associated with computer Programs
Types of Programming Errors Logical errors: The program runs, compiles normally but produces wrong results . Runtime errors: Occur during execution of a computer program and cause program to abort abnormally. E.g. infinite looping or division by zero Compile time errors: E rrors that are identified at compile time using the compiler, they include syntax and wrong data types
Program Development & Top Down Design During Program development, the following steps must be followed: Understand the problem Analyzing the problem we're given Dissect the problem into manageable pieces Developing a solution technique (algorithm) Documenting the program/technique Translating (implementing) the technique into code Compiling and running the program Testing the results with appropriate data
What is Top down Approach? Take a problem, divide it into smaller logical sub-problems, and remember how they fit together. For each sub-problem, divide it into still smaller sub-problems. Continue sub-dividing until each little problem is small enough to be easily solved. Solving a collection of small problems thus allows us to solve one much larger problem.
Read About!! Read about the following and how they can assist us in the concept of programming: Algorithm Pseudo Code; Differentiate Between the Two Terms Above. Flow Charts; Representing Computational Problems in Programming