SlideShare ist ein Scribd-Unternehmen logo
1 von 10
PUNJAB COLLEGE OF TECHNICAL EDUCATION, LUDHIANA

                                            COURSE PLAN


Name of Teacher: Sandeepjit Kaur                       Subject Name: Programming in ‘C’
Email Id: sandeepjit@pcte.edu.in                       Subject Code: BC-104 (N2)
Assignments: 3                                         Total Lectures: 40
                     Tests: 4                                          Revision Lectures: 4



Max. Marks 100

Internal Assessment 40
External Assessment 60

Instructions for Candidates
Candidates are required to attempt four questions from section B and the entire section A.
Use of non-programmable scientific calculator is allowed.

Fundamentals: Character set, Identifiers & Keywords, Data Types, constants, set,
constants, variables, expressions, statement, symbolic constants. Operations and
expressions: Arithmetic operators, unary operators, relational and logical operators,
assignment and conditional operators, and library functions.

Data input and output: Preliminaries, single character input, single character output,
entering input data, more about the scanf() function, writing output data, more about
printf function, the gets and puts function, interactive programming.

Control statements: Preliminaries, while, do-while and for statements. Nested loops, if
else, switch, break continue statement.

Functions: Brief overview, defining accessing function, passing perimeters to function,
specifying argument data types, function prototype and recursion.

Program structure: Storage classes, automatic, external, and static variables, more
about library functions.

Array: defining and processing an array, passing pointers to a function, pointer and one
dimensional arrays, operations on pointers, passing functions multidimensional arrays of
pointers, passing functions to the other functions, more about pointer declarations.

Structure And Unions: Defining and processing a structure, user defined data types,
structure and Pointers, passing structure to function, self-referential structures, unions.
Data files: Opening, closing, creating, and processing and unformatted data field.
C-programming applications: Sorting (Bubble sort, Selection sort), Searching (Binary
                                     search, Linear Search).




REFERENCE:

1. E.Balaguruswamy           Programming in ANSI ‘C’               (Tata McGraw
Hill)

2. Byron Gottorfried         Schaum’s outline of programming with C (Tata McGraw
Hill)

3. Kerighan & Richie         The C programming language            (PHI Publication)

4. Lafore R.                 Object Oriented Programming          (Galgotia)

5. Aaron M. Tannen Baum      Data structures using C             (PHI publication)
Punjab College of Technical Education -
                                     Course Plan


Subject Name: Programming in 'C'                           Subject         BC-104(N2)
                                                           Code:
Teacher's Code: SJ                                         No. of Tests:   4
No. of     40                                              No. of          4
Lect.                                                      Assignments



Lect No   Topic                               Assignment   Test            Date
1         Fundamentals of computer
          Language, Compiler, assembler


2         Problem Solving with
          Computers, Algorithms with
          examples
3         Flow charts with examples
4         Program structure of a simple
          C Program
5         Introduction to Character set,
          Identifiers, Keywords, Data
          Types
6         Constants, variables,
          expressions.
7         Statement, symbolic constants
8         Operations and expressions:
          Arithmetic operators, unary
          operators, relational and logical
          operators
9         Assignment and conditional                       test1
          operators, and library
          functions.
10   Data input and output:
     Preliminaries (printf,
     scanf),Single character output,
     entering input data, Writing
     output data, gets and puts
     function

11   Format Specifiers /Delimiters
     and Escape Sequences

12   Interactive programming            Assignment
     (creating User Friendly            1
     Programs)
13   Control statements:
     Preliminaries
14   If statements
15                                                   Test 2
     If elseif, nested ifelse, ladder
     ifelse statements
16   While, do-while statements
17   For statements, Nested loops

18   Switch Case Statement
19   Break and Continue statement
20   function: definition, uses,
     Types of functions(Inbuilt, user
     defined)
21   Predefined Functions: string
     function, mathematical
     functions
22   user defined function: defining,
     calling and prototype of
     function
23   Passing perimeters to function, Assignment
     Specifying argument data types 2

24   Recursion
25   Storage classes, automatic,
     external, and static variables
26   User defined data types: enum,
     typedef
27   Array: Defining and                            test3
     processing an array
28   Types of Array : one and two
     dimensional arrays
29   Array and Function
30   Intro to pointers
31   Pointer and one dimensional
     arrays
32   Pointer Arithmetics
33   Structure :Defining and           Assignment
     processing structure              3

34   Structure and pointers, passing
     structure to function

35   Self-referential structures
36   Union: definition,                             test4
     uses,difference b/w union and
     structure
37   Introduction of files:Opening
     and Closing files

38   Creating, and
     processing,Unformatted data
     field
39     C-programming
       applications: Linear
       Search,Binary search
40     Bubble sort,Selection sort




     Reference:
     1 Yashwant Kanetkar “Let us C”
     2. E.Balaguruswamy Programming in ansi ‘C’ (Tata McGraw Hill)
     3. Schaum’s series for data structure (Tata McGraw Hill)
Assignment No. 1
Date of delivery:
Date of submission:


Ques 1:    Define the following terms:
           a) variable
           b) constant
           c) keywords
           d) difference between ‘+’ and ‘++’ operator
           e) difference between ‘&’ and ‘&&’ operator
           f) difference between ‘=’ and ‘==’ operator


Ques 2:    Enumerate the operators available in ‘C’ language and illustrate
           the use of conditional, unary minus, increment and && operator
           through a simple program.
Ques 3:    What is an expression? What kind of information is returned by
           an expression?
Ques 4:    What do you understand by structured language? Why ‘C’ is
           called a structured language and middle level language?
Assignment No. 2
Date of delivery:
Date of submission:


Ques 1:    Wap in ‘C’ to input 5 digits number from user and print this
           number in reverse order?
Ques 2:    Name the three different classes of statements in ‘C’. describe
           the composition of each.
Ques 3:    What the purpose of break statement? Within which statements
           can the break statement can be included?
Ques 4:    Write a recursive function to compute fibonacci series upto 20
           terms.
Ques 5:    Write a program to print the following


                              1
                        1     2       1
                    1   2     3       2     1
           1        2   3     4       3     2       1


Ques 6.    What is the difference between while and do-while statement?
Assignment No. 3
Date of delivery:
Date of submission:


Ques 1:    Assuming That The Data Consist Of 100 Positive Integers In
           The Range Of 0 To 25, Write A Program In C That Prints The
           Number Of Times Each Of The Integers Occurs In The Input?
Ques 2:    Explain the difference between structure and union?
Ques 3:    WAP to sort the elements of an array by using selection sort and
           bubble sort.
Ques 4:    WAP to search an element from an array by using binary
           search.
Ques 5:    WAP to multiply two matrices.
Presentation Topics

1.       Algorithms and Flowcharts
2. Fundamentals: Character set, Identifiers & Keywords, Data Types,
      constants, set, constants, variables, expressions, statement, symbolic
      constants
3. Operations and expressions: Arithmetic operators, unary operators,
      relational and logical operators, assignment and conditional operators,
4.       Library functions
5. Data input and output: Preliminaries, single character input, single
      character output, entering input data, more about the scanf function, writing
      output data,
6.       String functions
7.       If else statements
8. While, do-while and for statements
9.       Nested loops
10.       Switch,
11.       Break continue statement
12.       Functions
13.       Recursion.
14. Storage classes: automatic, external, and static variables
15.      Array: one, two and multi dimensional array.
16. Passing pointers to a function, pointer and one dimensional arrays
17. Passing functions multidimensional arrays of pointers, passing functions to
      the other functions
18. Structure And Unions: Defining and processing a structure, user defined
    data types, structure and Pointers, passing structure to function, self-
    referential structures, unions.
19. Data files: Opening, closing, creating, and processing and unformatted data
    field.
20. Sorting (Bubble sort, Selection sort), Searching (Binary search, Linear
    Search).

Weitere ähnliche Inhalte

Was ist angesagt?

9781111530532 ppt ch03
9781111530532 ppt ch039781111530532 ppt ch03
9781111530532 ppt ch03
Terry Yoast
 
M.tech.(cse) (regular) part i(semester i & ii)
M.tech.(cse) (regular) part i(semester i & ii)M.tech.(cse) (regular) part i(semester i & ii)
M.tech.(cse) (regular) part i(semester i & ii)
Rekha Bhatia
 
01 c++ Intro.ppt
01 c++ Intro.ppt01 c++ Intro.ppt
01 c++ Intro.ppt
Tareq Hasan
 

Was ist angesagt? (19)

Cosc 1436 java programming/tutorialoutlet
Cosc 1436 java programming/tutorialoutletCosc 1436 java programming/tutorialoutlet
Cosc 1436 java programming/tutorialoutlet
 
Handout#03
Handout#03Handout#03
Handout#03
 
Handout#09
Handout#09Handout#09
Handout#09
 
9781111530532 ppt ch03
9781111530532 ppt ch039781111530532 ppt ch03
9781111530532 ppt ch03
 
Storage classes, linkage & memory management
Storage classes, linkage & memory managementStorage classes, linkage & memory management
Storage classes, linkage & memory management
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 
M.tech.(cse) (regular) part i(semester i & ii)
M.tech.(cse) (regular) part i(semester i & ii)M.tech.(cse) (regular) part i(semester i & ii)
M.tech.(cse) (regular) part i(semester i & ii)
 
Oops
OopsOops
Oops
 
Assignment11
Assignment11Assignment11
Assignment11
 
01 c++ Intro.ppt
01 c++ Intro.ppt01 c++ Intro.ppt
01 c++ Intro.ppt
 
SE-IT DSA LAB SYLLABUS
SE-IT DSA LAB SYLLABUSSE-IT DSA LAB SYLLABUS
SE-IT DSA LAB SYLLABUS
 
Handout#11
Handout#11Handout#11
Handout#11
 
Chap02
Chap02Chap02
Chap02
 
Assignment1
Assignment1Assignment1
Assignment1
 
Solutions manual for c++ programming from problem analysis to program design ...
Solutions manual for c++ programming from problem analysis to program design ...Solutions manual for c++ programming from problem analysis to program design ...
Solutions manual for c++ programming from problem analysis to program design ...
 
Handout#08
Handout#08Handout#08
Handout#08
 
Programming fundamentals using c++ question paper 2014 tutorialsduniya
Programming fundamentals using c++  question paper 2014   tutorialsduniyaProgramming fundamentals using c++  question paper 2014   tutorialsduniya
Programming fundamentals using c++ question paper 2014 tutorialsduniya
 
R05010106 C P R O G R A M M I N G A N D D A T A S T R U C T U R E S
R05010106  C  P R O G R A M M I N G   A N D   D A T A  S T R U C T U R E SR05010106  C  P R O G R A M M I N G   A N D   D A T A  S T R U C T U R E S
R05010106 C P R O G R A M M I N G A N D D A T A S T R U C T U R E S
 
OOP in C++
OOP in C++OOP in C++
OOP in C++
 

Andere mochten auch

Using Mail Merge
Using Mail Merge Using Mail Merge
Using Mail Merge
PCTE
 
Mūžu mūžos ..... MD
Mūžu mūžos ..... MDMūžu mūžos ..... MD
Mūžu mūžos ..... MD
irlavasbibl1
 
101marketingquotesjune2011
101marketingquotesjune2011101marketingquotesjune2011
101marketingquotesjune2011
Narendra Singh
 
Searching techniques
Searching techniquesSearching techniques
Searching techniques
PCTE
 
Mūžu mūžos ..... md
Mūžu mūžos ..... mdMūžu mūžos ..... md
Mūžu mūžos ..... md
irlavasbibl1
 
Power Point Tips
Power Point TipsPower Point Tips
Power Point Tips
PCTE
 

Andere mochten auch (9)

Using Mail Merge
Using Mail Merge Using Mail Merge
Using Mail Merge
 
Mūžu mūžos ..... MD
Mūžu mūžos ..... MDMūžu mūžos ..... MD
Mūžu mūžos ..... MD
 
101marketingquotesjune2011
101marketingquotesjune2011101marketingquotesjune2011
101marketingquotesjune2011
 
Course module of DS
Course module of DSCourse module of DS
Course module of DS
 
Searching techniques
Searching techniquesSearching techniques
Searching techniques
 
OR IP PCTE
OR IP PCTEOR IP PCTE
OR IP PCTE
 
Mūžu mūžos ..... md
Mūžu mūžos ..... mdMūžu mūžos ..... md
Mūžu mūžos ..... md
 
Power Point Tips
Power Point TipsPower Point Tips
Power Point Tips
 
System concepts
System conceptsSystem concepts
System concepts
 

Ähnlich wie Coursebreakup

Course Break - C Language
Course Break - C LanguageCourse Break - C Language
Course Break - C Language
anilmanu2001
 
Course Breakup - C Porgramming Language
Course Breakup - C Porgramming LanguageCourse Breakup - C Porgramming Language
Course Breakup - C Porgramming Language
anilmanu2001
 
Student copybca sem1-c
Student copybca sem1-cStudent copybca sem1-c
Student copybca sem1-c
anilmanu2001
 
Course Break - C++ Language
Course Break - C++ LanguageCourse Break - C++ Language
Course Break - C++ Language
anilmanu2001
 
Course Break - C++ Language
Course Break - C++ LanguageCourse Break - C++ Language
Course Break - C++ Language
anilmanu2001
 
2021 icse reducedsylabiix-computer applications
2021 icse reducedsylabiix-computer applications2021 icse reducedsylabiix-computer applications
2021 icse reducedsylabiix-computer applications
Vahabshaik Shai
 
Syllabus of BCA Second Year JAMMU University
Syllabus of BCA Second Year JAMMU UniversitySyllabus of BCA Second Year JAMMU University
Syllabus of BCA Second Year JAMMU University
Ravi Shairaywal
 

Ähnlich wie Coursebreakup (20)

Course Break - C Language
Course Break - C LanguageCourse Break - C Language
Course Break - C Language
 
Course Breakup - C Porgramming Language
Course Breakup - C Porgramming LanguageCourse Breakup - C Porgramming Language
Course Breakup - C Porgramming Language
 
Student copybca sem1-c
Student copybca sem1-cStudent copybca sem1-c
Student copybca sem1-c
 
Af7ff syllabuslablist
Af7ff syllabuslablistAf7ff syllabuslablist
Af7ff syllabuslablist
 
Fy secondsemester2016
Fy secondsemester2016Fy secondsemester2016
Fy secondsemester2016
 
Fy secondsemester2016
Fy secondsemester2016Fy secondsemester2016
Fy secondsemester2016
 
Fy secondsemester2016
Fy secondsemester2016Fy secondsemester2016
Fy secondsemester2016
 
Course File c++
Course File c++Course File c++
Course File c++
 
Course Break - C++ Language
Course Break - C++ LanguageCourse Break - C++ Language
Course Break - C++ Language
 
Course Break - C++ Language
Course Break - C++ LanguageCourse Break - C++ Language
Course Break - C++ Language
 
2021 icse reducedsylabiix-computer applications
2021 icse reducedsylabiix-computer applications2021 icse reducedsylabiix-computer applications
2021 icse reducedsylabiix-computer applications
 
17 pcds syllabus
17 pcds syllabus17 pcds syllabus
17 pcds syllabus
 
Syllabus of BCA Second Year JAMMU University
Syllabus of BCA Second Year JAMMU UniversitySyllabus of BCA Second Year JAMMU University
Syllabus of BCA Second Year JAMMU University
 
SE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUSSE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUS
 
2nd sem
2nd sem2nd sem
2nd sem
 
2nd sem
2nd sem2nd sem
2nd sem
 
IT-UG-New-Syllabus.pdf
IT-UG-New-Syllabus.pdfIT-UG-New-Syllabus.pdf
IT-UG-New-Syllabus.pdf
 
B sc it syit sem 3 sem 4 syllabus as per mumbai university
B sc it syit sem 3 sem 4 syllabus as per mumbai universityB sc it syit sem 3 sem 4 syllabus as per mumbai university
B sc it syit sem 3 sem 4 syllabus as per mumbai university
 
EST 102 C P.pptx
EST 102 C P.pptxEST 102 C P.pptx
EST 102 C P.pptx
 
Programming For Problem Solving Lecture Notes
Programming For Problem Solving Lecture NotesProgramming For Problem Solving Lecture Notes
Programming For Problem Solving Lecture Notes
 

Kürzlich hochgeladen

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Kürzlich hochgeladen (20)

On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 

Coursebreakup

  • 1. PUNJAB COLLEGE OF TECHNICAL EDUCATION, LUDHIANA COURSE PLAN Name of Teacher: Sandeepjit Kaur Subject Name: Programming in ‘C’ Email Id: sandeepjit@pcte.edu.in Subject Code: BC-104 (N2) Assignments: 3 Total Lectures: 40 Tests: 4 Revision Lectures: 4 Max. Marks 100 Internal Assessment 40 External Assessment 60 Instructions for Candidates Candidates are required to attempt four questions from section B and the entire section A. Use of non-programmable scientific calculator is allowed. Fundamentals: Character set, Identifiers & Keywords, Data Types, constants, set, constants, variables, expressions, statement, symbolic constants. Operations and expressions: Arithmetic operators, unary operators, relational and logical operators, assignment and conditional operators, and library functions. Data input and output: Preliminaries, single character input, single character output, entering input data, more about the scanf() function, writing output data, more about printf function, the gets and puts function, interactive programming. Control statements: Preliminaries, while, do-while and for statements. Nested loops, if else, switch, break continue statement. Functions: Brief overview, defining accessing function, passing perimeters to function, specifying argument data types, function prototype and recursion. Program structure: Storage classes, automatic, external, and static variables, more about library functions. Array: defining and processing an array, passing pointers to a function, pointer and one dimensional arrays, operations on pointers, passing functions multidimensional arrays of pointers, passing functions to the other functions, more about pointer declarations. Structure And Unions: Defining and processing a structure, user defined data types, structure and Pointers, passing structure to function, self-referential structures, unions.
  • 2. Data files: Opening, closing, creating, and processing and unformatted data field. C-programming applications: Sorting (Bubble sort, Selection sort), Searching (Binary search, Linear Search). REFERENCE: 1. E.Balaguruswamy Programming in ANSI ‘C’ (Tata McGraw Hill) 2. Byron Gottorfried Schaum’s outline of programming with C (Tata McGraw Hill) 3. Kerighan & Richie The C programming language (PHI Publication) 4. Lafore R. Object Oriented Programming (Galgotia) 5. Aaron M. Tannen Baum Data structures using C (PHI publication)
  • 3. Punjab College of Technical Education - Course Plan Subject Name: Programming in 'C' Subject BC-104(N2) Code: Teacher's Code: SJ No. of Tests: 4 No. of 40 No. of 4 Lect. Assignments Lect No Topic Assignment Test Date 1 Fundamentals of computer Language, Compiler, assembler 2 Problem Solving with Computers, Algorithms with examples 3 Flow charts with examples 4 Program structure of a simple C Program 5 Introduction to Character set, Identifiers, Keywords, Data Types 6 Constants, variables, expressions. 7 Statement, symbolic constants 8 Operations and expressions: Arithmetic operators, unary operators, relational and logical operators 9 Assignment and conditional test1 operators, and library functions.
  • 4. 10 Data input and output: Preliminaries (printf, scanf),Single character output, entering input data, Writing output data, gets and puts function 11 Format Specifiers /Delimiters and Escape Sequences 12 Interactive programming Assignment (creating User Friendly 1 Programs) 13 Control statements: Preliminaries 14 If statements 15 Test 2 If elseif, nested ifelse, ladder ifelse statements 16 While, do-while statements 17 For statements, Nested loops 18 Switch Case Statement 19 Break and Continue statement 20 function: definition, uses, Types of functions(Inbuilt, user defined) 21 Predefined Functions: string function, mathematical functions 22 user defined function: defining, calling and prototype of function
  • 5. 23 Passing perimeters to function, Assignment Specifying argument data types 2 24 Recursion 25 Storage classes, automatic, external, and static variables 26 User defined data types: enum, typedef 27 Array: Defining and test3 processing an array 28 Types of Array : one and two dimensional arrays 29 Array and Function 30 Intro to pointers 31 Pointer and one dimensional arrays 32 Pointer Arithmetics 33 Structure :Defining and Assignment processing structure 3 34 Structure and pointers, passing structure to function 35 Self-referential structures 36 Union: definition, test4 uses,difference b/w union and structure 37 Introduction of files:Opening and Closing files 38 Creating, and processing,Unformatted data field
  • 6. 39 C-programming applications: Linear Search,Binary search 40 Bubble sort,Selection sort Reference: 1 Yashwant Kanetkar “Let us C” 2. E.Balaguruswamy Programming in ansi ‘C’ (Tata McGraw Hill) 3. Schaum’s series for data structure (Tata McGraw Hill)
  • 7. Assignment No. 1 Date of delivery: Date of submission: Ques 1: Define the following terms: a) variable b) constant c) keywords d) difference between ‘+’ and ‘++’ operator e) difference between ‘&’ and ‘&&’ operator f) difference between ‘=’ and ‘==’ operator Ques 2: Enumerate the operators available in ‘C’ language and illustrate the use of conditional, unary minus, increment and && operator through a simple program. Ques 3: What is an expression? What kind of information is returned by an expression? Ques 4: What do you understand by structured language? Why ‘C’ is called a structured language and middle level language?
  • 8. Assignment No. 2 Date of delivery: Date of submission: Ques 1: Wap in ‘C’ to input 5 digits number from user and print this number in reverse order? Ques 2: Name the three different classes of statements in ‘C’. describe the composition of each. Ques 3: What the purpose of break statement? Within which statements can the break statement can be included? Ques 4: Write a recursive function to compute fibonacci series upto 20 terms. Ques 5: Write a program to print the following 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1 Ques 6. What is the difference between while and do-while statement?
  • 9. Assignment No. 3 Date of delivery: Date of submission: Ques 1: Assuming That The Data Consist Of 100 Positive Integers In The Range Of 0 To 25, Write A Program In C That Prints The Number Of Times Each Of The Integers Occurs In The Input? Ques 2: Explain the difference between structure and union? Ques 3: WAP to sort the elements of an array by using selection sort and bubble sort. Ques 4: WAP to search an element from an array by using binary search. Ques 5: WAP to multiply two matrices.
  • 10. Presentation Topics 1. Algorithms and Flowcharts 2. Fundamentals: Character set, Identifiers & Keywords, Data Types, constants, set, constants, variables, expressions, statement, symbolic constants 3. Operations and expressions: Arithmetic operators, unary operators, relational and logical operators, assignment and conditional operators, 4. Library functions 5. Data input and output: Preliminaries, single character input, single character output, entering input data, more about the scanf function, writing output data, 6. String functions 7. If else statements 8. While, do-while and for statements 9. Nested loops 10. Switch, 11. Break continue statement 12. Functions 13. Recursion. 14. Storage classes: automatic, external, and static variables 15. Array: one, two and multi dimensional array. 16. Passing pointers to a function, pointer and one dimensional arrays 17. Passing functions multidimensional arrays of pointers, passing functions to the other functions 18. Structure And Unions: Defining and processing a structure, user defined data types, structure and Pointers, passing structure to function, self- referential structures, unions. 19. Data files: Opening, closing, creating, and processing and unformatted data field. 20. Sorting (Bubble sort, Selection sort), Searching (Binary search, Linear Search).