Beruflich Dokumente
Kultur Dokumente
attendance will be marked as late 10 min late I will not allow the student in class No compromise on the deadlines. Hard copy will submitted for each work. Only two person will be in group. Disturbance will not allowed during lecture.
y Introduce Your Self. y Your Name, Your Background, Schooling. y Your Aims in Life. y Are you interested in research? y What is PhD?
link: www.asadshaikh.com/pf
y y
Lecture notes, handouts, papers to read, etc. So why should you come to lecture then?
y You can always ask questions from me. y The best way to communicate with me is through
y A good coder can never stop thinking. y You will enjoy when you create your
It s like engineering
Programming Fundamentals CS-102/CSC-111 3 credit hours / 2+1 class hours (per week) Spring(2012) Asadullah Shaikh UAN: 111-428-428 Ext. (139) Friday (11 AM 12 PM) asadullah@biztekian.com
Course Prerequisites None Quarter/Year Instructor Contact Number Consultation Hours Email
y Let us discuss the tentative outline now? y The final outline will be provided soon.
Course Objectives
y The course is designed to familiarize students with the
basic structured programming skills. It tries to acquaint students with problem analysis, algorithm designing, and program development and testing.
y Concepts and principles of problem solving y Construction of algorithms to solve problems y Principles underlying the design of a programming language y Experience & Confidence in the use of programming language to
implement algorithms
Course Description/Outline
y Overview of computer programming and
programming language
y Fundamental programming constructs y Sequence (statements, blocks) y Selection (if switch) y Iteration (loops like while and for) y Functions, Arrays, Strings, Structures and Unions
By the completion of this course, student would be able to analyze, construct, and execute simple computer programs in C programming language LO1: Understand basics (Introduction, basic concepts of C language) LO2: Understand loops and decisions LO3: Construct small functions in C language LO4: Understand advance concepts (pointers and filing)
TEXTBOOK(S) 1. Turbo C, Programming for the PC and Turbo C++, By Robert Lafore (Publisher SAMS) 2. Let us C, By Yashwant Kanitkar (BPB Publications)
Marks/Poin ts 15 10 20 05 50
Lecture 1 (Session 1)
Introduction History of C C Programming Environment
What is an algorithm ?
Simply, the step-by-step sequence of instructions that describe how the data is to be processed to produce the desired output
What is C?
A programming language developed by Dennis Ritchie at Bell Labs. The language that UNIX was written in to become the first "portable" language. In 1980s, the American National Standards Institute (ANSI) standardized C. The ANSI standard, or "ANSI C .
Phases of C Programs:
Editor Preprocessor Compiler Linker Disk Disk Disk Disk Memory Loader
1. Program is created in the editor and stored on disk 2. Preprocessor program processes the directives etc. 3. Compiler creates object code and stores it on disk. 4. Linker links the object code with the libraries
Memory CPU
6. CPU takes each instruction and executes it, possibly storing new data values as the program executes
myprog.c SOURCE
myprog.obj OBJECT
myprog.exe EXECUTABLE
written in C
via compiler
via linker
other code from libraries, etc. (also in machine language)
void main(void) {
Functions are units of a program A ``C`` program contains one or more functions When a program is execcuted control is transferred to main() function