University of Madras - Syllabus of Bachelor of Science (BSc) Mathematics - Semester VI - Paper XVI - Programming Language With C Practicals
UNIVERSITY OF MADRAS
B.Sc. DEGREE COURSE IN MATHEMATICS
SEMESTER SYSTEM WITH CREDITS
(Effective from the Academic Year 2003-2004)
SYLLABUS
Semester VI - Paper XVI - Programming Language With C Practicals
Duration of Examination: 3 hrs
Maximum Marks: 100
Credits: 4
To Write and Run the Programmes for the Following Problems:
To find the Square of the Numbers from 1 to 20 Using
1. For loop 2. While loop 3. Do while loop 4. Goto Statement
To generate the series for the following Functions and to check the Result Using the Corresponding
Built-in Functions:
1. Sinx
2. cosx
3. ex
To Count the Number of Vowels, Consonants, Words, White Spaces in a line of Text and Array of Lines
To Reverse a String and Check for the Palindrome
To Enter Two Integers and Print all the Prime Numbers between them.
To compute the following using Recursion and Ternary operator.
1. The Factorial of an Integer
2. Binomial coefficient nCr, where n and r are Positive Integers
3. The n
th Fibonacci number from the Fibonacci series where n is an Integer.
To Perform
1. Matrix addition and subtraction.
2. Matrix multiplication.
3. Transpose of a Matrix.
4. Determinant of a Matrix.
To Sort a given set of numbers in the Ascending order by
1. Insertion sort
2. Bubble sort
3. Selection sort
To Solve Algebraic and Transcendental equations by
1. Bisection method
2. Newton-Raphson method
Simple problems
To Solve a System of Linear Simultaneous equations by Gauss-Elimination method
To Interpolate using Lagrange's formula for interpolation
To evaluate a definite integral using Simpson's one-third rule
To solve an Ordinary Differential equation of first order by Runge-Kutta method of fourth order
Try to swap two values by using Swap_r() and Swap_v() Passing by reference and by value
To find the roots of a quadratic equation by using Function root() and Pointer
To create an unnamed structure 'student' to contain the following
1. Name
2. Ten test scores
3 Final grade
1. Read the name, grade, and ten test scores in to the structure and print them out along with the high, low and average score.
2. To create an unnamed array capable of storing 30 students. Assign values to five students and print out the information required in along with the students having the highest and lowest scores.
Reference books:
1. Computer oriented numerical methods, V.Rajaraman.
2. The spirit of C, Mullish Cooper, Indian edition by Jaico publishers, 1987.
3. Teach yourself C. Herbert Schildt, Obsbome Mcgraw hill, second edition 1994.
4. Programming in C, Schaum series.
5. C/C++ Programmer's guide, chns.H.Pappas and William H Murray, Ziff-Davis press, Indian edition by BPB publications, 1996.
6. Computer programmig in C, V.Rajaraman, Prentice-Hall of India, 1995.
7. Programming in ANSI C, E.Balagurusarny, 2nd edition, Tata Mcgraw hill Co., 1996.