Programming in C

Teacher

Sujata Acharya

Category

Core Courses

Course Attendees

Still no participant

Course Reviews

Still no reviews

Course Name : Programming in C

Code(Credit) : CCCS1202(3-2-1)

Course Objectives

  • The course is designed to provide complete knowledge of C language.
  • Students will be able to develop logics which will help them to create programs, applications in C.
  • Also by learning the basic programming constructs they can easily switch over to any other language in future.
  • It aims to train the student to the basic concepts of the C-programming language.
  • This course involves a lab component which is designed to give the student hands-on experience with the concepts.

Learning Outcomes

After course completion the students will have the following learning outcomes:

  • Understanding a functional hierarchical code organization.
  • Ability to define and manage data structures based on problem subject domain.
  • Ability to work with textual information, characters and strings.
  • Ability to work with arrays of complex objects.
  • Understanding a concept of object thinking within the framework of functional model.
  • Understanding a concept of functional hierarchical code organization.
  • Understanding a defensive programming concept. Ability to handle possible errors during program
    execution.

Course Syllabus

Module I
Problem solving techniques & Introduction to C:

 

Algorithms, Flow charts, Pseudo codes, Structured programming-sequence, selection and iterations, Overview of C, Structure of C program, Character set,Identifiers, Keywords. Constants, Variables, Data Types: Size and range of data types,type conversions.

 

Assignment (1): Explain flow chart, algorithm & pseudo code.
Describe tokens briefly.
What is data type? what are its type? Explain.

Practice (1): Demonstrate all the data type by taking variables.

 

Module II
Operators:

 

Arithmetic operator, Relational and logical operators, Increment and decrement operators, Conditional operator, Bit-wise operators, Assignment operators, Expressions, precedence and order of evaluation, Managing Input and Output: I/O functions: printf, scanf, getchar.

 

Assignment (2): Explain all the data type use in C programming.

Practice (2): Write a program to take length and breadth of a rectangle and calculate its area and perimeter.

 

Module III
Decision Making and Branching & Loop Control Structures:

 

if, if-else, if-else-if, Nested if and switch, statements, While, do-while, For loops.Jumping statements: goto, break.

 

Assignment (3): What is Decision making statement ? explain.

Assignment (4): Differentiate between:
i) if and nested if
ii) while and do.. while

Practice (3): Write a program to take a number and check whether it is a buzz number or not.

Practice(4): WAP to compute the sum of the first n terms of the following series S = 1+1/2+1/3+1/4+......
WAP to print the sum and product of digits of an integer.
WAP to print the reverse of a number.

 

Module IV
Arrays &Strings:

 

Declaration, definition, accessing elements of one dimensional Array, Declaration, definition, accessing elements of two dimensional arrays, String Manipulation, String handling actions

 

Assignment (5): Explain arrays with its type.

Practice (5): WAP to perform following actions on an array entered by the user:
i) Print the even-valued elements
ii) Print the odd-valued elements
iii) Calculate and print the sum and average of the elements of array
iv) Print the maximum and minimum element of array
v) Print the array in reverse order

Practice (6):WAP to print a triangle of stars as follows (take number of lines from user):

*

**
***
****
*****

Practice (7):Create Matrix class using templates. Write a menu-driven program to perform following Matrix operations (2-D array implementation):
a) Sum b) Difference c) Product d) Transpose

 

Module V
Functions & Derived data types:

 

Types of functions, prototype declaration, definition, parameter passing, Recursive functions, Storage classes - extern, auto, register, static, scope rules, Structures- declaration, Definition and initialization of structures, Accessing structures, Nested structures, Arrays of structures, Union and typedef, Bit fields.

 

Assignment (6): Explain Function with its type.

Assignment (7): Describe briefly about storage class.

Assignment (8): What is structure? How to declare a structure? Explain

Practice (8): Create a structure Student containing fields for Roll No., Name, Class, Year and Total Marks. Create 10 students and store them in a file.

Practice(9): WAP to display Fibonacci series (i)using recursion, (ii) using iteration.

 

Module VI
Introductions to pointers:

 

Pointer arithmetic, Pointers to arrays, Pointers to functions, Pointers to structures, Pointers to pointers, Pointers and multidimensional arrays.

 

Assignment (9): Explain different usages of Pointer.

Practical (10): Write a program that swaps two numbers using pointers.

 

Module VII
File management in C:

 

Concept of a file, text files and binary files Streams, standard I/O, Formatted I/O, file I/O operations, Error handling

 

Assignment (10): Describe file management system.
What is error handling? how to resolve it.

Practice (11): Write a program to retrieve the student information from file created and print it in following format: Roll No. Name Marks

Practice (12): Write a program to demonstrate error handling.

 

Text Books:

1. Byron Gottfried, “Programming with C” TMH Publications
2. Ashok and Kamthane ’Computer Programming” Pearson Education.

Reference Books:

1.E. Balaguruswamy “Programming in C”, Tata McGraw Hill-3rd edition
2.B.W. Kernighan & D.M. Ritchie, "C Programming Language", PHI.
3.T Jeyapoovan, A First Course in Programming with C, Vikas Publishing House Pvt Ltd.

Session Plan

Session 1

Session 4 (Assignment 1) (1 hr)

Explain flow chart, algorithm & pseudo code.
Describe tokens briefly.
What is data type? what are its type? Explain.

Session 5 (Practice 1) (2 hrs)

Demonstrate all the data type by taking variables.

https://www.youtube.com/watch?v=8GJqjFoY7UQ

Session 11

Session 12

Managing Input and Output: I/O functions: printf, scanf, getchar.

https://www.tutorialspoint.com/cprogramming/c_operators_precedence.htm

Session 13 (Assignment 2) (1 hr)

Explain all the data type use in C programming.

Session 14 (Practice 2) (2 hrs)

Write a program to take length and breadth of a rectangle and calculate its area and perimeter.

https://www.youtube.com/watch?v=lFPnsaFI1kU

Session 20

Session 21 (Assignment 3) (1 hr)

What is Decision making statement ? explain.

Session 22 (Assignment 4) (1 hr)

Differentiate between:
i) if and nested if
ii) while and do.. while

Session 23 (Practice 3) (2 hrs)

Write a program to take a number and check whether it is a buzz number or not.

https://www.youtube.com/watch?v=QfUhthW-LuE

Session 24 (Practice 4) (2 hrs)

WAP to compute the sum of the first n terms of the following series S = 1+1/2+1/3+1/4+......
WAP to print the sum and product of digits of an integer.
WAP to print the reverse of a number.

https://www.youtube.com/watch?v=YEiDCcVagHY

https://www.youtube.com/watch?v=_EG2-i7ZNd0

https://www.youtube.com/watch?v=lClEW-QePeU

Session 28 (Assignment 5) (1 hr)

Explain arrays with its type.

Session 29 (Practice 5) (2 hrs)

WAP to perform following actions on an array entered by the user:
i) Print the even-valued elements
ii) Print the odd-valued elements
iii) Calculate and print the sum and average of the elements of array
iv) Print the maximum and minimum element of array
v) Print the array in reverse order

https://www.youtube.com/watch?v=TsN9wj_Qz60

https://www.youtube.com/watch?v=J8h7en22dxw

https://www.youtube.com/watch?v=SVhEFWPNwMg

https://www.youtube.com/watch?v=-IG93djxyb0

https://www.youtube.com/watch?v=8wive3M3D_g

Session 30 (Practice 6) (2 hrs)

WAP to print a triangle of stars as follows (take number of lines from user):

*

**
***
****
*****

https://www.youtube.com/watch?v=_64p6mahlV4

Session 31 (Practice 7) (2 hrs)

Create Matrix class using templates. Write a menu-driven program to perform following Matrix operations (2-D array implementation):
a) Sum b) Difference c) Product d) Transpose

https://www.youtube.com/watch?v=URB38hzV_DY

https://www.youtube.com/watch?v=xyXxVZNgEoU

https://www.youtube.com/watch?v=q2FpkqnTPjI

Session 34

Storage classes - extern, auto, register, static, scope rules.

https://www.youtube.com/watch?v=4l6oS8YJMl0&list=PLWPirh4EWFpEK1RbpruFXrwgzcGUjZ4nV&index=49

Session 35

Structures- declaration, Definition and initialization of structures, Accessing structures.

https://www.youtube.com/watch?v=Ranc3VvjI88&list=PLVlQHNRLflP8IGz6OXwlV_lgHgc72aXlh&index=42

Session 39 (Assignment 6) (1 hr)

Explain Function with its type.

Session 40 (Assignment 7) (1 hr)

Describe briefly about storage class.

Session 41 (Assignment 8) (1 hr)

What is structure? How to declare a structure? Explain.

Session 42 (Practice 8) (2 hr)

Create a structure Student containing fields for Roll No., Name, Class, Year and Total Marks. Create 10 students and store them in a file.

https://www.youtube.com/watch?v=6Hls0SZ95AI

Session 43 (Practice 9) (2 hr)

WAP to display Fibonacci series (i)using recursion, (ii) using iteration.

https://www.youtube.com/watch?v=JoqHccxeMj0

Session 48 (Assignment 9) (2 hrs)

Explain different usages of Pointer.

Session 49 (Practice 10) (2 hrs)

Write a program that swaps two numbers using pointers

https://www.youtube.com/watch?v=Ukk0HQFFHcY&t=93s

Session 50

Session 51

Session 53 (Assignment 10) (2 hrs)

Describe file management system.
What is error handling? how to resolve it.

Session 54 (Practice 11) (2 hrs)

Write a program to retrieve the student information from file created and print it in following format: Roll No. Name Marks

https://www.youtube.com/watch?v=7UxKNLWQSbU

Session 55 (Practice 12) (2 hrs)

Write a program to demonstrate error handling.

https://www.youtube.com/watch?v=-tg2utFwjVs

Case Studies

Case Studies

Our Main Teachers

Sujata Acharya

Assistant Professor, Department of IT, SoAS, Balangir
VIEW PROFILE