Skip to main content

Programs to try using 2D-Array

1.Write programs for matrix arithmetic.
a)addition b)subtraction c)multiplication
2.Find transpose of a given matrix.(university question)
3.Find the trace of a matrix.( sum of the diagonal element)
4.Find sum of each rows and columns of a matrix.
5.Find the norm of a matrix.(1-norm .Find sum of absolute value of element column wise.Find the max).
6.Given two square matrices A and B of same order.
Check whether AB equal BA.
7.Check whether the given matrix is symmetric.(university question)
8.Check whether a given matrix is an identity matrix.
9. Calculate determinant of a 3 x 3 matrix.
10.Find the saddle points in a matrix.
11.Given matrix A.B,C of size 3x3 find 3A-2B+AC
12. marks(out of 150) of 5 students in 3 subjects are stored in matrix form.Find
a)top marks in each subject
b)Number of failed students in each subject
c)average mark in each subject.
d)Number of supply subjects each students have.
13.Print all prime numbers from a matrix.(university question)
14.Write a C program to accept a two dimensional matrix and display the row sum, column sum and diagonal sum of elements.(university question)
15.Check whether the given matrix is diagonal.

Comments

Popular posts from this blog

KTU Mandatory C programs for Laboratory and Solutions

LIST OF LAB EXPERIMENTS 1. Familiarization of Hardware Components of a Computer 2. Familiarization of Linux environment – Programming in C with Linux 3. Familiarization of console I/O and operators in C     i) Display “Hello World”     ii) Read two numbers, add them and display their sum     iii) Read the radius of a circle, calculate its area and display it 4. Evaluate the arithmetic expression ((a -b / c * d + e) * (f +g))   and display its solution. Read the values of the variables from the user through console 5. Read 3 integer values, find the largest among them. 6. Read a Natural Number and check whether the number is prime or not 7. Read a Natural Number and check whether the number is Armstrong or not 8. Read n integers, store them in an array and find their sum and average 9. Read n integers, store them in an array and search for an element in the    array using an algorithm for Linear Search 10.Read n integers, store them in an array and sort the elements in t

PROGRAMMING IN C KTU EST 102 THEORY AND LAB NOTES

PROGRAMMING IN C  KTU  EST 102  THEORY AND LAB   COMMON FOR ALL BRANCHES About Me Syllabus Theory Syllabus Lab Model Question Paper EST 102 Programmin in C University Question Papers  and evaluation scheme   EST 102 Programming in C  Introduction( Lab) Introduction to C programming Linux History and GNU How to create a bootable ubuntu USB stick Installing  Linux Install Linux within  Windows Virtual Box and WSL Linux Basic Features and Architecture Basic Linux Commands Beginning C Programming Compiling C programs using gcc in Linux Debugging C program using gdb Module 1: Basics of computer hardware and software          Module-1 Reading Material Basics of Computer Architecture Hardware and Software System Software and Application Software  Programming Languages ( High level, Low level and Machine Language) and Translators ( Compiler, Interpreter, Assembler) Algorithm, Flowcharts and Pseudo code Program Development Structured Programming Basics of hardware ( video) Know about Motherboar