FOUR YEARS UNDER GRADUATE PROGRAMME IN MATHEMATICS
DETAILED SYLLABUS OF 5th SEMESTER
Title of the Course : Computer Programming
Course Code : MINMTH5
Nature of the Course : MINOR
Total Credits : 04 (L=3, T=0, P=1)
Distribution of Marks : 45 (End Sem) +15(Practical)+ 40 (In-Sem)
Course Objectives: The objectives of this Course are to -
• Develop logics which will help them to create programs, applications in C.
• Easily switch over to any other language in future by learning the basic programming
concepts.
Total
UNITS CONTENTS L T P
Hours
I Basic programming concept, programming approach to 12 00 - 12
(13 Marks) solving problem, flowcharts, algorithm, character set, C
tokens, keywords and identifiers, constants, variables, data
types, declaration of variables, declaration storage class,
assigning values to variables. Operators and expressions:
Arithmetic operators, relational operators, logical operators,
assignment operators, arithmetic expression, precedence of
arithmetic operators, type conversion in expressions
operator precedence and associativity, mathematical
functions. Inut output operations, Reading and writing a
character, formatted input and formatted output, Character
input/ Output functions: getchar(), Putchar() etc.
II Decision making and Branching, IF statement, IF...ELSE 09 00 - 09
(10 Marks) statement, nested IF, ELSE IF Ladder, WHILE statement,
DO statement, FOR statement, Break, continue, go to
statements, exit function
III Arrays, One dimensional arrays, declaration of one 06 00 - 06
(7 Marks) dimensional array, initialization of two dimensional arrays,
multidimensional array.
IV User-defined functions, Elements of user defined functions, 09 00 - 09
(10 Marks) Definition of functions, return values and their types,
function calls, function declaration, category of functions,
no arguments and return values, arguments with return
values, no arguments but returns a value, functions that
return multiple values, Recursion, storage classes in C.
V - - 24 24
(20 Marks) List of Practicals:
17. Simple and compound interest
18. Sum of series, sum of first n natural numbers, sum
of square of first n natural numbers, sum of cube of
first n natural numbers.
91
19. Solution of quadratic equation
20. Checking the Prime numbers
21. Sum of sine, cosine and Fibonacci numbers
22. Mean and standard deviation
23. Printing of a matrix
24. Matrix addition, subtraction, multiplication,
transpose
25. Sorting of numbers (ascending and descending)
26. Computation of salary
27. Finding the largest numbers among the three and n
numbers.
28. Finding the factorial of a numbers using functions
and recursion
29. Printing of even numbers and odd numbers in a
range.
30. Sum of digits of integer.
31. Checking of palindrome of a numbers
32. Printing of numbers in various forms, number
tables.
Total 36 00 24 60
Where, L: Lectures T: Tutorials P: Practicals
MODES OF IN-SEMESTER ASSESSMENT: (40 Marks)
• One Internal Examination - 20 Marks
• Others (any two or more) - 20 Marks
o Seminar presentation on any of the relevant topics
o Assignment
o Group Discussion
o Quiz
o Viva-Voce
LEARNING OUTCOMES:
After the completion of this course, the learner will be able to:
• Develop the understanding of an algorithm and its definition.
• Learn programming basics of C such as Data types, Mathematical and logical operations, if statement
and loops etc.
TEXTBOOKS:
1. Jeyapoovan T., A First Course in Programming with C, Vikash Publishing House Pvt. Ltd.
2. Balagurusamy E., Programming in ANSI C; 4Ed, Tata McGrow-Hill Publishing Company
Ltd, New Delhi.
REFERENCE BOOKS:
1. Kanetkar Y., Let us C, B.P. Publication.
2. Gottfried B. S., C- Programming, Tata McGrow Hill.
92