6 views

Uploaded by Abhinav Bansal

- MHTCET Tricks
- Short Matlab
- Cvru Regular Syllabus - Bachelor of Business Administration 2013-16
- Sample Question Paper Mathematics
- Functions Lesson
- Advanced Set Analysis - MLT Vacations
- Algebra_5.pdf
- ADIF, A FORTRAN IV Progam for Solving the Shallow-water Equations
- nlp 1
- 3.5.pdf
- cover-150809074001-lva1-app6892.docx
- 24 SUE_Uniq (TS2003)
- 3.5.pdf
- List of Helpful R Functions
- Maths-329490-2019-syllabus
- Lab 3
- Imagecoding Engaaa
- Final File- 5th Semester
- magicsqaure 1
- A PARALLEL LOOP SCHEDULING ALGORITHM BASED ON THE SMARANDACHE f-INFERIOR PART FUNCTION

You are on page 1of 2

Practical assignment-5

Arrays

1. Write a program to find the sum of elements of one dimensional array.

2. Write a program to find the sum of elements on both diagonals of square matrix.

3. Write a program to find the sum of even and odd numbers that appear in the matrix.

4. Write a program to find the smallest and the largest number among the 2D array.

5. Write a program to find the sum of elements of principal diagonal of square array.

6. Write a program to display the upper triangular matrix.

7. Write a program to display the lower triangular matrix.

8. Write a program to reverse the 1Dimensional array.

9. Write a program to delete an element from the specific location of an array.

10. Write a program to find the transpose of the matrix.

11. Write a program to add two matrices of the same order.

12. Write a program arrange the elements of an array in ascending order.

13. Write a program to multiply two matrices.

14. Write a program to check if the given matrix is symmetric or not.

15. Write a program to check if the particular element exists in the matrix and also

display the location of element.

16. Program to display array elements with their addresses

17. Program to display the elements of two arrays and their corresponding elements sum.

E.g if two arrays are defined as array1[ ]={1,2,3,4,5}, array2[ ]={1,2,3,4,5} then

resulting array should be array3[ ]={2,4,6,8,10}

18. Program to merge two arrays into third one. Display contents of all the three arrays

1st Year (All Branches)

Practical assignment-6

Functions

1. Write a program to build a function which swaps two numbers entered by the user.

2. Write a program to develop a function to find the largest of three numbers (call by

value).

3. Write a function to find the sum of digits of a given number entered by the user.

4. Write a function to implement ab where a and b are integers (use math function).

5. Write a program to simulate a four function calculator.

6. Write a program to build a function which checks whether a number is prime or not.

7. Write a function to generate first n Fibonacci series where n is entered by the user and

pass it as an argument to a function.

8. Write a function to find the GCD of three numbers entered by the user. (recursion)

9. Write a recursive function to find the factorial of a number of users choice.

10. Write a function to read a number in binary form and converts it into hexadecimal

form.

11. Write a function to find the sum of all elements of a matrix (passing arrays to

function).

12. Write a function to find the standard deviation of n numbers by passing an array to

function.

13. Write a function arrange the numbers entered by the user in an ascending order.

14. Write a function to evaluate the series:

1-x2/2!+x3/3!-x4/4!.........upto given number of terms

Use a function to compute the factorials.

15. Write a recursive function for computing the values of (xn) given x and n as input

arguments.

- MHTCET TricksUploaded bynichas
- Short MatlabUploaded byapi-3824811
- Cvru Regular Syllabus - Bachelor of Business Administration 2013-16Uploaded byvivek patel
- Sample Question Paper MathematicsUploaded byashwani_scribd
- Functions LessonUploaded bymomathtchr
- Advanced Set Analysis - MLT VacationsUploaded byMichael Laenen
- Algebra_5.pdfUploaded byPeve Ricardo
- ADIF, A FORTRAN IV Progam for Solving the Shallow-water EquationsUploaded byBrunohild
- nlp 1Uploaded byPramanshu Rajput
- 3.5.pdfUploaded byYuuzwastein Perüllerstag
- cover-150809074001-lva1-app6892.docxUploaded bySubhasish Kumar Behura
- 24 SUE_Uniq (TS2003)Uploaded byguido gentile
- 3.5.pdfUploaded byRomel
- List of Helpful R FunctionsUploaded byits4krishna3776
- Maths-329490-2019-syllabusUploaded bymukeshnt
- Lab 3Uploaded bysirali94
- Imagecoding EngaaaUploaded byAbinash Mishra
- Final File- 5th SemesterUploaded byShriya
- magicsqaure 1Uploaded byapi-360674086
- A PARALLEL LOOP SCHEDULING ALGORITHM BASED ON THE SMARANDACHE f-INFERIOR PART FUNCTIONUploaded byMia Amalia
- 18 Matrix MathUploaded byHanafiahHamzah
- _MATLAB lecture4_ 2Uploaded byAbdul Bari
- Matrix RotationUploaded byjoymage21
- MATLAB TutorialUploaded bySid Dis
- Discrete Systems Statics Short IUploaded byShreyansh Tibdewal
- Assignment 1Uploaded byBun
- alg i graphing absolute value functionsUploaded byapi-401678134
- r963Uploaded bySimon Tile
- winter break review packetUploaded byapi-268267969
- 2017 11 Sample Paper Mathematics 03 QpUploaded byAryan Sheoran

- Page FaultUploaded byAbhinav Bansal
- c Content1Uploaded byAbhinav Bansal
- Aadhar Card Enrolment FormUploaded bygajsuresh
- 2nd Mid Sem PlanUploaded byAbhinav Bansal
- Assignment 1 ( Aug- Nov 2014)Uploaded byAbhinav Bansal
- Computer Programming Practical Assig 1-2Uploaded byAbhinav Bansal
- Permissions (1)Uploaded byAbhinav Bansal
- Permissions.docxUploaded byAbhinav Bansal
- Computer Practical Assignment 2 (For C language)Uploaded byAbhinav Bansal
- SMAUploaded bySubhro Prakash

- Linear Algebra FactsheetUploaded bycmtinv
- MATH321 Lec2 Solutions to Systems of Linear Equations, Eigenvalues and Eigenvectors (1).pdfUploaded byTimothy Gordo
- New EM Quiz12Uploaded bySingh Karan
- Boolean MatricesUploaded bybwarsz
- Tutorial 1 - MatrixUploaded byWan Muhammad Abdul Hakim
- Matrix factorizations and low rank approximationUploaded bytantantan
- Quad Forms MatricesUploaded byJessica Henderson
- IGCSE MatricesUploaded byNad Hs
- PCA in RUploaded byAvdesh Kothari
- apresentacao_CIDMA_2010Uploaded byimmsilvam
- Sparse matrices.pdfUploaded bymars
- 2018 See MousUploaded byHipstersdssadad
- Quadratic inequalities.docxUploaded byAngel Comia
- solns_2001Uploaded byGag Paf
- Matrix Explained with AnimationUploaded bymanavazhagan
- Orthogonal MatricesUploaded byHemant
- algebra IUploaded byJoseph Ireland
- Math410_Module02Uploaded byLemuel Gallego
- d200401-501Uploaded bySunil Kumar
- Linear_Algebra.pdfUploaded byIoana Cîlniceanu
- Principal Component Analysis PrimerUploaded byAri David Paul
- Lenguaje Ensamblador Irvine 5a EdiciónUploaded byClaudio Guaita
- Sd AkhilUploaded bySaikrishna Gazula
- PCA.xlsUploaded byViacheslav Baykov
- AppendixUploaded byRaman Kanaa
- Manavazhaganr@Bsnl.inUploaded byManavazhagan
- 216Uploaded byhmalrizzo469
- 4.2 Algebraic Properties of Inverses.docUploaded bySusilo Wati
- Notes_MMU218_00036Uploaded byDayna Powell
- Matrices and DeterminantsUploaded byalloc_21_lyndon