0% found this document useful (0 votes)
17 views3 pages

C Programming

The document outlines a curriculum for a semester course on Problem Solving and Programming in C, detailing objectives, units of study, and laboratory exercises. Key topics include algorithms, basic programming constructs, functions, pointers, structures, and file processing. The course aims to equip students with practical programming skills through various hands-on experiments and projects.

Uploaded by

thejaswin67
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views3 pages

C Programming

The document outlines a curriculum for a semester course on Problem Solving and Programming in C, detailing objectives, units of study, and laboratory exercises. Key topics include algorithms, basic programming constructs, functions, pointers, structures, and file processing. The course aims to equip students with practical programming skills through various hands-on experiments and projects.

Uploaded by

thejaswin67
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

SEMESTER - I

PROBLEM SOLVING AND L T P C


PROGRAMMING IN C 3 0 0 3
OBJECTIVES:
● Interpret Mathematical problems using algorithms, flowchart and pseudocode.
● To understand about the programming language
● To develop C Programs using basic Programming Constructs, Loops, Arrays and Strings
● To develop applications in C using Functions, Pointers and Structures
● To perform I/O operations and File Handling in C

UNIT – I INTRODUCTION TO PROGRAMMING AND ALGORITHMS FOR


PROBLEM SOLVING 9
Introduction to Problem Solving through programs- Algorithm- Flowchart–Pseudocode-
Memory, Variables, Values, Instructions, Programs- compilation process-Syntax and
Semantic Errors- The language of C : Phases of developing a running computer program in C
- Character set – Constants – Keywords – Primitive data types –Declaration, Type Conversion

UNIT - II BASICS OF C PROGRAMMING 9


Sequential- Arithmetic Operators, Relational Operators, Logical Operators, Increment
Decrement Operators, Bitwise Operators, Assignment Operators and Expressions, Precedence
and Order of Evaluation, selective – If Else-If, Switch- repetitive structures-for, while, do
while, Nested loops, go to, break, continue –Finding maximum of 3 numbers, Unit converters,
Interest calculators, multiplication tables, GCD and LCM, Prime number generation.
Introduction to Arrays: Declaration, Initialization – One Dimensional Array – Example
Program: Computing Mean, Median and Mode - Two Dimensional Arrays – Example
Program: Matrix Operations (Addition, Scaling, Determinant and Transpose) - String
Operations: Length, Compare, Concatenate - Copy – Selection Sort - Linear and Binary
Search.

UNIT - III FUNCTIONS AND POINTERS 9


Introduction to Functions: Function Prototype, Function Definition, Function Call, Built-in
Functions (String Functions, Math Functions) – Recursion – Example Program: Computation
of Sine Series - Scientific Calculator using Built-in Functions - Binary Search using Recursive
Functions - Factorial and Fibonacci Generation - Towers of Hanoi problem - – Pointers –
Pointer Operators – Pointer Arithmetic – Arrays and Pointers –Array of Pointers – Example
Program: Sorting of Names – Parameter Passing: Pass by Value - Pass by Reference –
Example Program: Swapping of Two Numbers using Pass by Reference.

UNIT - IV STRUCTURES 9
Structure - Nested Structures – Pointer and Structures – Array of Structures – Example
Program using Structures and Pointers – Self Referential Structures – Dynamic Memory
Allocation - Singly Linked List – Typedef
UNIT - V FILE PROCESSING 9
Files – Types of File Processing: Sequential Access, Random Access – Sequential Access File
- Example Program: Finding Average of Numbers stored in Sequential Access File - Random
Access File - Example Program: Transaction Processing Using Random Access Files –
Command Line Arguments.
TOTAL: 45 PERIODS

TEXT BOOKS:
1. R.G. Dromey, "How to solve it by Computers", Reprint, PHI Publishers, 2011.
2. Reema Thareja, “Programming in C”, Oxford University Press, Second Edition, 2018.
3. Kernighan, B.W and Ritchie D.M, “The C Programming language”, Second Edition,
Pearson Education, 2015.

REFERENCES:
1. Yashwant Kanetkar, "Let us C", 18th Edition, BPB Publications, 2021.
2. Byron Gottfried, "Programming with C", Fourth Edition, Tata McGraw Hill Education,
2018.
3. Paul Deitel and Harvey Deitel, “C How to Program”, Seventh edition, Pearson Publication,
2015.
4. Jeri R. Hanly & Elliot [Link], “Problem Solving and Program Design in C”, Pearson
Education, 2013.
5. Pradip Dey, Manas Ghosh, “Fundamentals of Computing and Programming in C”, First
Edition, Oxford University Press, 2009.
6. Anita Goel and Ajay Mittal, “Computer Fundamentals and Programming in C”, Dorling
Kindersley (India) Pvt. Ltd., Pearson Education in South Asia, 2011.
7. Hanly J R & Koffman E.B, “Problem Solving and Programme design in C”, Pearson
Education, 2009.

WEB REFERENCES:
1. [Link]
2. [Link]
3. [Link]

ONLINE RESOURCES:
1. [Link]
programming_tutorial
2. [Link]
3. [Link]

OUTCOMES:
Upon completion of the course, the student will be able to:
1. Understand the concepts of algorithms for solving a problem.(K2)
2. Illustrate the various constructs in C to develop simple applications.(K3)
3. Understand the concepts of Array & Strings.(K2)
4. Demonstrate the usage of Functions and Pointers.(K3)
5. Explain the Structure and union concepts.(K2)
6. Describe the file manipulation and its organisation.(K2)
SEMESTER - I

L T P C
PROGRAMMING IN C LABORATORY
0 0 2 1

OBJECTIVES:
● To develop programs in C using basic Programming Constructs
● To develop applications in C using Arrays and Strings
● To design and implement applications in C using Functions, Structures
● To develop applications in C using Files
LIST OF EXPERIMENTS
1. Write a program using I/O statements and expressions.
2. Write programs using decision-making constructs.
3. Write a program to find whether the given year is a leap year or not? (Hint: not every
century is a leap. For example 1700, 1800 and 1900 is not a leap year)
4. Write a program to perform the Calculator operations, namely, addition, subtraction,
multiplication, division and square of a number.
5. Write a program to check whether a given number is an Armstrong number or not?
6. Write a program to check whether a given number is odd or even?
7. Write a program to find the factorial of a given number.
8. Write a program to find out the average of 4 integers.
9. Write a program to print half pyramid of *.
10. Write a program to display array elements using two dimensional arrays.
11. Write a program to perform swapping using a function.
12. Write a program to display all prime numbers between two intervals using functions.
13. Write a program to solve towers of Hanoi using recursion.
14. Write a program to get the largest element of an array using the function.
15. Write a program to concatenate two strings.
16. Write a program to find the length of String.
17. Write a program to find the frequency of a character in a string.
18. Write a program to store Student Information in Structure and Display it.
19. The annual examination is conducted for 10 students for five subjects. Write a program
to read the data and determine the following:
(a) Total marks obtained by each student.
(b) The highest marks in each subject and the marks of the student who secured it.
(c) The student who obtained the highest total marks.
20. Write a program to demonstrate file operations (e.g. count the number of characters,
words and lines in a file, replace a specific word with the given word in the same file).
TOTAL: 30 PERIODS
OUTCOMES:
Upon completion of the course, the student will be able to:
1. Illustrate C programs for simple applications making use of basic constructs, arrays, strings,
functions and recursion.(K2)
2. Demonstrate C programs involving pointers, and structures. (K3)
3. Interpret applications using sequential and random access files. (K3)

You might also like