VB DSEMA-3B Computer Laboratory, 2020
Visva-Bharati question paper, B.Sc. Mathematics Honours Semester VI, 2020. Computer Laboratory. Typed in LaTeX, searchable, with a printable PDF.
Open this paper in MathQP
- Write a Fortran program to calculate the monthly telephone bill at the following rates: par First 300 calls : no charges par Calls between 301 and 501: at the rate of 50p per call par Calls between 501 and 1000: at the rate of 80p per call par Calls more than 1000: at the rate of Rs. 1.5 per call par and rental charges of Rs. 75 per month.
- A Fibonnaci sequence is defined as follows: par 0,1,1,2,3,5, ldots quad ( T n+1 =T n+T n-1 ,n ge 1 ) par Write a Fortran program to find all numbers of this sequence which are le 200 .
- Draw a flow chart to find the inner product x 1y 1+x 2y 2+ ldots +x ny n of two vectors X and Y, each containing n elements.
- Write a Fortran program to compute int a b f(x) ,dx= frac h2[f(a)+2f(a+h)+ ldots +2f(b-h)+f(b)] par h=(b-a)/n , f(x)= frac x+ sin x x+e x .
- Write a Fortran program to read the values of the n nodal points and the corresponding function values and to calculate the value of the nth degree Lagrange interpolating polynomial for a given value of x which is also to be read.
- Write a Fortran program to read values of the sides a,b,c of a triangle and to calculate and print the perimeter and area of the triangle.
- Given a series in geometric progression, with first term a and common ratio r. Write a Fortran program to find the sum of the first n terms of this series.
- Write a complete Fortran program to evaluate par cos x=1- frac x 2 2! + frac x 4 4! - ldots par by direct summation of successive terms, neglecting the first term whose absolute value becomes lesser than EPS or adding M terms, which ever is earlier, for x=0.1 to 0.5 in steps of 0.05 ( x in radians) using DO statement.
- Write a Fortran program to arrange a sequence of n real numbers ( n le 100 ) in ascending order.
- Write a Fortran program to find the smallest positive root of an algebraic or transcendental equation using fixed point iteration method.
- Write a Fortran program to find the smallest positive root of an algebraic or transcendental equation using regula falsi method.
- Write a Fortran program to find the function value of y for a given value of x using Newton's forward interpolation formula.
- INTEGER A,B A = -4 B = -2 50 IF (A-B) 20, 30, 30 20 A = A+5 GO TO 50 30 IF (A.LT.0) A = A+3 B = A + B IF (B .LE. 0) GO TO 50 B = A * B
- A = 4 K = 1 ASSIGN 50 TO I 50 GO TO (30,30,40,20), K 20 ASSIGN 60 TO I 30 A = A + 2 40 K = K + 1 GO TO I, (50,60) 60 A = A-1 B = A + K.