Write a programme in C that will add 2 matrix and print the output matrix. Matrix will be 3 by 3  matrix. Take the elements from the user as input.   Use function prototype:   void addMatrix(int rowSize, int colSize, int matA[rowSize][colSize], int matB[rowSize][colSize])   Write a programme in C that will subtract 2 matrix and print the output matrix. Matrix will be 4  by 4 matrix. Take the elements of the first matrix from the user as input. Then transpose the  first matrix to create the second matrix and subtract transpose matrix from the first matrix. Use function prototype:   void subtractMatrix(int rowSize, int colSize, int matA[rowSize][colSize], int   matB[rowSize][colSize])   3.Write a program in C to find the maximum number among 3 numbers using a pointer. Take the input from user.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
  1. Write a programme in C that will add 2 matrix and print the output matrix. Matrix will be 3 by 3  matrix. Take the elements from the user as input.  

Use function prototype:  

void addMatrix(int rowSize, int colSize, int matA[rowSize][colSize], int matB[rowSize][colSize])  

  1. Write a programme in C that will subtract 2 matrix and print the output matrix. Matrix will be 4  by 4 matrix. Take the elements of the first matrix from the user as input. Then transpose the  first matrix to create the second matrix and subtract transpose matrix from the first matrix. Use function prototype:  

void subtractMatrix(int rowSize, int colSize, int matA[rowSize][colSize], int  

matB[rowSize][colSize])  

3.Write a program in C to find the maximum number among 3 numbers using a pointer. Take the input from user.

4.Write a program in C that will print largest and the second largest elements of an array. Array  size will be 10 and the input will be taken from user. 

5.Write a program in C that will find the even numbers and odd numbers from an array. The even  numbers will be stored an another array named evenArray and odd numbers will be stored in  the oddArray. Then print both array. The size of all 3 array will be 12. Prototype:  void findEvenOddNumber(int size, int originalArr[], int evenArr[], int oddArr[]); 

6.Write a program which reads string and rewrite it in alphabetical order. For example, the word  STRING should be written as GINRST. 

7.Write a program to replace a particular word by another word in a given string. For example the  “PYTHON” should be replaced by “C” in the text “It is good to program in PYTHON language”. 

8. Write a program that will find the maximum number from 3 float type numbers. You have to use
the function getMax which will take 3 pointer variables and return the maximum number.

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education