Professional Documents
Culture Documents
Past Papers 6th Semester 2013-2018 All Subjects
Past Papers 6th Semester 2013-2018 All Subjects
| Write'C+ program code ‘segment for the following 8 i {a) 10 caleulate and print equivalent of two capacitors connected [ex in series, read capacitances from the user | (0) toprint x,y against ftx.y) for the equation | f(x,y) =x +7 2xy — 9 read x ond y from user I (c) toalculate and display minimum of f(x,y) in above “ 10 Write C™ ‘program to evalume the [(x'+4Vx~>7ide by Mrapenoidal’s rute or by Simpson’s (1/3) rule due to options | or 2 ively (use n=6). Report error message for any other option messed by the user M1. J .... Sa A and B be 3x3 matrices Write C™* program which reads ‘of A and B and prints out the entries of matrix which is EE (ID = ASAI 3 ant Cid to prim off diagonal | of C. {iv) maximum of the elements of matrix A. (y)| ements of matrix B 6a for the simple harmonic ination (SM) of a spring using Euler’s method under the 9.8 m/s?, initfal position zero and velocity €€. and maximum time 15 see:, k = | Nim, nd print values for tiie, position and velocity HOW you con change the same program for | Q) which reads in radius values and print out values of the ciscle. Execuie the program