Sie sind auf Seite 1von 8

Lovely Professional University,Punjab

Format For Instruction Plan [for Courses with Lectures and Labs

Course No CAP502

Cours Title FOUNDATIONS OF COMPUTER PROGRAMMING

Course Planner 11005 :: Rajni

Lectures Tutorial Practical Credits 3 0 3 5

Text Book:

1 Title: Let Us C, Author: Yashvant P Kanetkar, Publisher: BPB

Other Specific Book:

2 Byron Gottfried, Programming With C, Tata McGraw Hill Publishing Company Limited, New Delhi 3 Author: Ashok N. Kamthane, Title: Programming with ANSI & Turbo C, Publishers: Pearson Education 4 B.W. Kernighan and D.M. Ritchie, The C Programming Language, Prentice Hall of India, New Delhi 5 E.Balagurusamy , Programming in ANSI C , Tata McGraw Hill Publishing Company Limited, New Delhi 6 . Behrauz A.Foruzan & Richard F.Gilberg, Computer science A structure programming approach Using C, Thomson Asia, 2001

Other Reading Sr No Jouranls atricles as compulsary readings (specific articles, Complete reference) 7 Dr. Dobbs Journal (www.ddj.com) 8 Salgats Journal (www.salgat.blogspot.com) Relevant Websites Sr. No. (Web adress) (only if relevant to the courses) 9 www.cprogramming.com 10 www.cs.cf.ac.uk.com 11 www.programminstutorials.com 1 Salient Features Provides online tutorials on C programming language Provides online notes on C programming language Provides online tutorials on different programming languages Approved for Autumn Session 2011-12

Detailed Plan For Lectures


Week Number Lecture Number Lecture Topic Chapters/Sections of Pedagogical tool Textbook/other Demonstration/case reference study/images/anmatio n ctc. planned

Part 1
Week 1 Lecture 1 Lecture 2 Lecture 3 Basics of C Language: Phases in the development of a program Compilers & Interpreters Data Types :Integers, long and short, signed and unsigned, Chars signed and unsigned, float and double, Storage classes auto, register, static, extern Declarations: Character Set, delimiters, keywords, identifiers, constants, variables, declaring & Initializing variables ->Reference :1,1 Ch 6/Pg 167-172 ->Reference :1,1 Ch 6/Pg 174-184 ->Reference :1,1Ch 1/Pg 5-11 ->Reference :1,1Ch 1/Pg 1-4 CA/REGULAR/CAP619/ Lecture1 CA/REGULAR/CAP619/ Lecture2 CA/REGULAR/CAP619/ Lecture3 CA/REGULAR/CAP619/ Lecture4 CA/REGULAR/CAP619/ Lecture5 CA/REGULAR/CAP619/ Lecture6 CA/REGULAR/CAP619/ Lecture7 CA/REGULAR/CAP619/ Lecture8 CA/REGULAR/CAP619/ Lecture8 CA/REGULAR/CAP619/ Lecture9

Week 2

Lecture 4 Lecture 5

Lecture 6 Week 3 Lecture 7 Lecture 8 Lecture 9 Week 4 Lecture 10

Type Conversions, Operators, operator precedence ->Reference :1,1Ch & Associativity 1/Pg 13-19 Decision Control: if statement, if-else statement, Logical operators, Conditional operators Decision Control: if statement, if-else statement, Logical operators, Conditional operators Test 1, Conditional operators Loops: while, for, break, continue, do-while, Nesting ->Reference :1,1Ch 3 of loops ->Reference :1,1Ch 2

Part 2
Week 4 Lecture 11 Lecture 12 Week 5 Lecture 13 Loops: while, for, break, continue, do-while, Nesting ->Reference :1,1Ch 3 of loops Case Control: switch statement, switch vs if-else, goto keyword Arrays: Defining arrays, Array initialization, Bounds checking ->Reference :1,1Ch 4 ->Reference :1,1Ch 8/Pg 214-220 CA/REGULAR/CAP619/ Lecture10 CA/REGULAR/CAP619/ Lecture11 CA/REGULAR/CAP619/ Lecture12

Approved for Autumn Session 2011-12

Week 5

Lecture 14 Lecture 15

Two dimensional arrays Strings: Strings, 2D array of characters, String functions Pointers: Declaring and initializing pointers, Pointer arithmetic, Pointers and arrays,

->Reference :1,1Ch 8/Pg 233-239 ->Reference :1,1Ch 9

CA/REGULAR/CAP619/ Lecture13 CA/REGULAR/CAP619/ Lecture14

Week 6

Lecture 16

->Reference :1,1Ch CA/REGULAR/CAP619/ 5/Pg 140-1501Ch 8/Pg Lecture15 223-232 CA/REGULAR/CAP619/ Lecture16 CA/REGULAR/CAP619/ Lecture17 CA/REGULAR/CAP619/ Lecture18 CA/REGULAR/CAP619/ Lecture18 ->Reference :1,1Ch 8/Pg 221-231 CA/REGULAR/CAP619/ Lecture19

Lecture 17 Lecture 18

Pointers and Strings, Array of pointers to strings and ->Reference :1,1Ch its limitations 9/Pg 277-281 What is a function, Why use functions, Passing values between functions, calling functions, return type of function, call by value, call by reference, Test 2, call by reference Passing array to function ->Reference :1,1Ch 5/Pg 122-135 ->Reference :1,1Ch 5/Pg 136-139

Week 7

Lecture 19 Lecture 20 Lecture 21

MID-TERM Part 3
Week 8 Lecture 22 Lecture 23 Lecture 24 Week 9 Lecture 25 Lecture 26 Lecture 27 Week 10 Lecture 28 passing strings to functions Features of C Preprocessor, Macro expansion File Inclusion, Conditional Compilation, #if and #elif directives, #undef, #pragma, Build process ->Reference :1,1Ch 9/Pg 268-274 ->Reference :1,1Ch 7/Pg 198-201 ->Reference :1,1Ch 7/Pg 201-209 CA/REGULAR/CAP619/ Lecture20 CA/REGULAR/CAP619/ Lecture21 CA/REGULAR/CAP619/ Lecture22 CA/REGULAR/CAP619/ Lecture23 CA/REGULAR/CAP619/ Lecture24 CA/REGULAR/CAP619/ Lecture25 CA/REGULAR/CAP619/ Lecture26

Structures: Declaring structure, accessing elements, ->Reference :1,1Ch how structure elements are stored 10/Pg 289-296 array of structures, nested structures self-referential Unions; union of structures; bit-fields ->Reference :1,1Ch 10/Pg 297-299 ->Reference :1,1Ch 10/Pg 297-230 ->Reference :1,1Ch 17/Pg 517-524 1Ch 19/Pg 567-569

Part 4
Week 10 Lecture 29 Console I/O: I/O types, Console I/O functions, Formatted console I/O, sprint() and sscanf(), Unformatted console I/O ->Reference :1,1Ch 11/Pg 313-325 CA/REGULAR/CAP619/ Lecture27 Approved for Autumn Session 2011-12

Week 10 Week 11

Lecture 30 Lecture 31 Lecture 32 Lecture 33

Test 3, sprint() and sscanf(), Unformatted console I/O

->Reference :1,1Ch 11/Pg 313-325

CA/REGULAR/CAP619/ Lecture27 CA/REGULAR/CAP619/ Lecture28 CA/REGULAR/CAP619/ Lecture29 CA/REGULAR/CAP619/ Lecture30 CA/REGULAR/CAP619/ Lecture31 CA/REGULAR/CAP619/ Lecture32 CA/REGULAR/CAP619/ Lecture33

File Input / Output: File operations, opening, reading ->Reference :1,1Ch and closing files 11/Pg 329-338 File Input / Output: File operations, opening, reading and closing files File opening modes, String I/O, record I/O, text files ->Reference :1,1Ch and binary files, record I/O revisited 11/Pg 338-375 Operations on Bits: Bitwise operators ones complement, right shift, left shift, bitwise AND, bitwise OR, bitwise XOR Graphics: Drawing shapes ->Reference :1,1Ch 18/Pg 537-547 ->Reference :1,1Ch 18/Pg 548-555 ->Reference :1,1Ch 20/Pg 581-594

Week 12

Lecture 34 Lecture 35 Lecture 36

Spill Over
Week 13 Lecture 37 Lecture 38 Lecture 39 Week 14 Lecture 40 Interaction with hardware through c Graphics programming Additional Problems of c Mouse Programming ->Reference :1,1Ch 17 CA/REGULAR/CAP619/ Lecture34 ->Reference :1,1Ch 20 CA/REGULAR/CAP619/ Lecture35 ->Reference :1,1Ch 22 CA/REGULAR/CAP619/ Lecture36 ->Reference :1,1Ch 21 CA/REGULAR/CAP619/ Lecture37

Details of homework and case studies

Approved for Autumn Session 2011-12

Homework No.

Objective

Topic of the Homework

Nature of homework (group/individuals/field work

Evaluation Mode

Allottment / submission Week 2/3

Test 1

To Evaluate the conceptual understanding of the students

Basics of C Language: Phases in the development of a program Individual Compilers & Interpreters Data Types :Integers, long and short, signed and unsigned, Chars signed and unsigned, float and double, Storage classes auto, register, static, extern Declarations: Character Set, delimiters, keywords, identifiers, constants, variables, declaring & Initializing variables Type Conversions, Operators, operator precedence & Associativity Decision Control: if statement, if-else statement, Logical operators, Conditional operators Decision Control: if statement, if-else statement, Logical operators, Conditional operators Loops: while, for, break, continue, do-while, Nesting of loops Individual Loops: while, for, break, continue, do-while, Nesting of loops Case Control: switch statement, switch vs if-else, goto keyword Arrays: Defining arrays, Array initialization, Bounds checking Two dimensional arrays Strings: Strings, 2D array of characters, String functions Pointers: Declaring and initializing pointers, Pointer arithmetic, Pointers and arrays, Pointers and Strings, Array of pointers to strings and its limitations What is a function, Why use functions, Passing values between functions, calling functions, return type of function, call by value, call by reference, Passing array to function Individual passing strings to functions Features of C Preprocessor, Macro expansion File Inclusion, Conditional Compilation, #if and #elif directives, #undef, #pragma, Build process Structures: Declaring structure, accessing elements, how structure elements are stored array of structures, nested structures self-referential Unions; union of structures; bit-fields Console I/O: I/O types, Console I/O functions, Formatted console I/O, sprint() and sscanf(), Unformatted console I/O

Marks based on evaluation of test

Test 2

To evaluate the conceptual understanding of the students

Marks based on evaluation of test

5/6

Test 3

To evaluate the conceptual understanding of the students

Marks based on evaluation of test

8/9

Scheme for CA:out of 100*


5 Approved for Autumn Session 2011-12

Component Test

Frequency 2

Out Of 3 Total :-

Each Marks Total Marks 10 10 20 20

* In ENG courses wherever the total exceeds 100, consider x best out of y components of CA, as explained in teacher's guide available on the UMS

*Each experiment of the lab will be evaluated using following relative scheme:
Component J/E WR VIVA % of Marks 50 20 30

List of experiments :Lecture Number Lecture Topic Pedagogical Tools Or Equipment Planned PCs, LCD Projectors, Turbo C Compiler PCs, LCD Projectors, Turbo C Compiler PCs, LCD Projectors, Turbo C Compiler PCs, LCD Projectors, Turbo C Compiler PCs, LCD Projectors, Turbo C Compiler PCs, LCD Projectors, Turbo C Compiler PCs, LCD Projectors, Turbo C Compiler PCs, LCD Projectors, Turbo C Compiler PCs, LCD Projectors, Turbo C Compiler lab Manual Not Applicable Not Applicable Not Applicable Not Applicable Not Applicable Not Applicable Not Applicable Not Applicable Not Applicable

Program Program of Basics of C Language development 1 Program Program of Data Types development 2 Program Program of Storage classes. development 3 Program Program of Declarations development 4 Program Program of Type Conversions, Operators, operator development 5 precedence & Associativity Program Program of if statement, if-else statement, Logical development 6 operators, Conditional operators Program Program of Decision Control. development 7 Program Program of while, for, break, continue, do-while, development 8 Nesting of loops Program Program of while, for, break, continue, do-while, development 9 Nesting of loops 6

Approved for Autumn Session 2011-12

Program development 10 Program development 11 Program development 12 Program development 13 Program development 14 Program development 15 Program development 16 Program development 17 Program development 18

Program of Case switch statement, switch vs if-else, goto keyword Program of Arrays.

PCs, LCD Projectors, Turbo C Compiler

Not Applicable

PCs, LCD Projectors, Turbo C Compiler

Not Applicable

Program of Two dimensional arrays

PCs, LCD Projectors, Turbo C Compiler

Not Applicable

Program of Strings.

PCs, LCD Projectors, Turbo C Compiler

Not Applicable

Program of Declaring and initializing pointers, Pointer arithmetic, Pointers and arrays, Program of Pointers and Strings

PCs, LCD Projectors, Turbo C Compiler

Not Applicable

PCs, LCD Projectors, Turbo C Compiler

Not Applicable

Program of function, Passing values between functions, calling functions, return type of function, Program of call by value, call by reference,

PCs, LCD Projectors, Turbo C Compiler

Not Applicable

PCs, LCD Projectors, Turbo C Compiler

Not Applicable

Program of Passing array to function

PCs, LCD Projectors, Turbo C Compiler

Not Applicable

Mid Term
Program development 19 Program development 20 Program development 21 Program development 22 Program of passing strings to functions PCs, LCD Projectors, Turbo C Compiler Not Applicable

Program of Features of C Preprocessor, Macro expansion Program of File Inclusion, Conditional Compilation, #if and #elif directives, #undef, #pragma, Build process P rogram of Structures.

PCs, LCD Projectors, Turbo C Compiler

Not Applicable

PCs, LCD Projectors, Turbo C Compiler

Not Applicable

PCs, LCD Projectors, Turbo C Compiler

Not Applicable

Approved for Autumn Session 2011-12

Program development 23 Program development 24 Program development 25 Program development 26 Program development 27 Program development 28 Program development 29 Program development 30

Program of array of structures, nested structures

PCs, LCD Projectors, Turbo C Compiler

Not Applicable

Program of self-referential

PCs, LCD Projectors, Turbo C Compiler

Not Applicable

Program of Unions; union of structures; bit-fields

PCs, LCD Projectors, Turbo C Compiler

Not Applicable

Program of Console I/O: I/O types, Console I/O PCs, LCD Projectors, Turbo C Compiler functions, Formatted console I/O, sprint() and sscanf(), Unformatted console I/O Program of File Input / Output: File operations, opening, reading and closing files Program of File Input / Output: File operations, opening, reading and closing files PCs, LCD Projectors, Turbo C Compiler

Not Applicable

Not Applicable

PCs, LCD Projectors, Turbo C Compiler

Not Applicable

Program of File opening modes, String I/O, record I/O, PCs, LCD Projectors, Turbo C Compiler text files and binary files, record I/O revisited Program of Operations on Bits: Bitwise operators ones complement, right shift, left shift, PCs, LCD Projectors, Turbo C Compiler

Not Applicable

Not Applicable

Spill Over
Program development 31 Program development 32 Program of bitwise AND, bitwise OR, bitwise XOR PCs, LCD Projectors, Turbo C Compiler Not Applicable

Program of Graphics: Drawing shapes

PCs, LCD Projectors, Turbo C Compiler

Not Applicable

Approved for Autumn Session 2011-12

Das könnte Ihnen auch gefallen