B23-CAC-304 Programming with C
Part A – Introduction | |||||
Subject | COMPUTER SCIENCE/ COMPUTER APPLICATIONS | ||||
Semester | III | ||||
Name of the Course | Programming with C | ||||
Course Code | B23-CAC-304 | ||||
Course Type: (CC/MCC/MDC/CC- M/DSEC/VOC/DSE/PC/AEC/ VAC) | MDC | ||||
Level of the course (As per Annexure-I | 100-199 | ||||
Pre-requisite for the course (if any) | |||||
Course Learning Outcomes(CLO): | After completing this course, the learner will be able to:
1. understand the concepts of problem solving on computer 2. understand the basics of C programming along with various I/O functions 3. understand various operators and branching statements in C 4. understand loops, functions and arrays in C
5*. to design programs based on theoretical concepts of C. |
||||
Credits | Theory | Practical | Total | ||
2 | 1 | 3 | |||
Contact Hours | 2 | 2 | 4 | ||
Max. Marks:75(50(T)+25(P))
Internal Assessment Marks:20(15(T)+5(P)) End Term Exam Marks: 55(35(T)+20(P)) |
Time: 3 Hrs.(T), 3Hrs.(P) | ||||
Part B- Contents of the Course | |||||
Instructions for Paper- Setter | |||||
Unit | Topics | Contact Hours | |||
I | Overview of C: History, Importance, Structure of C Program, Character Set, Constants and Variables, Identifiers and Keywords, Data Types, Assignment Statement, Symbolic Constant. | 6 | |||
Input/output: Unformatted & Formatted I/O Function, Input Functions viz. scanf(), getch(), getche(), getchar(), gets(), output functions viz. printf(), putch(), putchar(), puts(). | ||
II | Operators & Expression: Arithmetic, Relational, Logical, Bitwise, Unary, Assignment, Conditional Operators and Special Operators Operator Hierarchy & Associativity. Arithmetic Expressions, Evaluation of Arithmetic Expression, Type Casting and Conversion. | 6 |
III | Decision making with if statement, if-else statement, nested if statement, else-if ladder, switch and break statement, goto statement
Looping: for, while, and do-while loop, jumps in loops. |
6 |
IV | Functions: definition, prototype, function call, passing arguments to a function: call by value, call by reference, recursive functions.
Arrays: Definition, types, Initialization, multidimensional arrays, Processing on Arrays. |
6 |
V* | The following activities be carried out/ discussed in the lab during the initial period of the semester.
Programming Lab: · Write a C Program to read radius and find area and volume of a sphere · Write a C Program to read three numbers and find the biggest of three · Write a C Program to demonstrate library functions in math.h (at least 5) · Write a C Program to read a number, find the sum of the digits, reverse the number and check it for palindrome · Write a C Program to read numbers from keyboard continuously till the user presses 999 and to find the sum of only positive numbers · Write a C Program to read percentage of marks and to display appropriate grade (using switch case) · Write a C Program to find the roots of quadratic equation (if else ladder) · Write a C program to read marks scored in 3 subjects by n students and find the average of marks and result (Demonstration of single dimensional array) · Write a C Program to remove Duplicate Element in a single dimensional Array · Program to perform addition and subtraction of Matrices · Write a C Program to generate n prime number by defining isprime () function · Write a C Program to find the trace of a square matrix using function · Write a C Program to read, display and multiply two matrices using functions |
25 |
Suggested Evaluation Methods | |
Internal Assessment:
➢ Theory · Class Participation: 4 · Seminar/presentation/assignment/quiz/class test etc.:4 · Mid-Term Exam: 7 ➢ Practicum · Class Participation: 2 · Seminar/Demonstration/Viva-voce/Lab records etc.:3 · Mid-Term Exam: NA |
End Term Examination:
A three hour exam for both theory and practicum. |
Part C-Learning Resources | |
Recommended Books/e-resources/LMS:
· Gottfried, Byron S., Programming with C, Tata McGraw Hill. · Balagurusamy, E., Programming in ANSI C, Tata McGraw-Hill. · Jeri R. Hanly & Elliot P. Koffman, Problem Solving and Program Design in C, Addison Wesley. · Yashwant Kanetker, Let us C, BPB. · Rajaraman, V., Computer Programming in C, PHI. · Yashwant Kanetker, Working with C, BPB |