Assignment III - Basic 'C'

Assignment III



Write a ‘C’ program to read a matrix and calculate the sum of its diagonal elements.


Write a ‘C’ program to subtract two matrices of order m Xn.


Write a ‘C’ program to read a matrix and display its transpose.


Write a ‘C’ program to check if a matrix is upper triangular.


Write a ‘C’ program with menu to perform the following operations on a character. 1. Check uppercase or lowercase 2. Display its ASCII value 3. Display its next and previous character 4. Exit.


Write a menu driven program to perform the following operations on an integer. Write separate functions. 1. Check if is even or odd   2. Check if it is prime   3. Exit


Accept two numbers and perform the following operations till the user selects Exit. 1. Maximum    2. Display all numbers between the two   3. Sum and average    4. EXIT


Write a function in ‘C’, which accepts a character and integer n as parameter and displays the next 'n' characters.


Write a ‘C’ program, which accepts annual basic salary of an employee and calculates and displays the Income tax as per the following rules. Basic: < 150000 Tax = 0 , 150000 to 300000 Tax = 20%, > 300000 Tax = 30%

Comments

Popular posts from this blog

Write a program to allocate memory dynamically for n integers. Accept the elements and calculate their sum and average

C program to accept names of n cities and search for city named “Pune”.