Semester : SEMESTER 5
Subject : Computer Programming & Numerical Methods
Year : 2018
Term : APRIL
Branch : MECHANICAL ENGINEERING
Scheme : 2015 Full Time
Course Code : ME 305
Page:1
C5801 Pages: 2
Reg No.: Name:
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
FIFTH SEMESTER B.TECH DEGREE EXAMINATION, APRIL 2018
Course Code: ME305
Course Name: COMPUTER PROGRAMMING & NUMERICAL METHODS
(MA,ME,MP,PE)
Max. Marks: 100 Duration: 3 Hours
PART A
Answer any three full questions, each carries 10 marks Marks
1 a) What is a flowchart? What are the notations used in flow charts? (6)
b) Draw the flow chart for finding factorial of N (4) 2 2) What are the various
operators in C++? (6) b) What is precedence of operators? (4)
3
10
a) What is the difference between the ‘break’ and ‘continue’ statements in C++? (4) b) Write a
program which accepts a number from the user and print whether it is a (6) prime number or
not.
a) What is recursion? (5) b) Write a program which accepts a string from the user and print
whether it is a (5) palindrome or not.
PART 8
Answer any three full questions, each carries 10 marks
a) With the help of an example explain the difference between call by value and call (5) 0५
reference method in C++?
b) Write a program which accepts the coefficients of a quadratic equation from the (5) user
and print its roots. Write a sub-function for evaluating the roots.
a) Write a program which accepts 10 numbers from the user and print it in (4) ascending order.
b) Write a program which accepts two 3x3 matrices from the user and print its (6)
product
a) Explain various access specifiers inC++. (6) b) What is a constructor? Explain with
a suitable example. (4)
a) What is inheritance? Explain with a suitable example. (5) b) What is overriding of
member functions? Explain with a suitable example. (5)
PART C
Answer any four full questions, each carries 10 marks
Solve the following system of equations using Gauss elimination method. (10)
x+y+z=9 2x -3y + 42 = 3
3x + 4y + 52 = 40
Solve the following system of equations using Gauss Jordan method. 5x (10)
-2y + 3z= 18
Page 1 of 2