Jrite 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])

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Questions 1,3,4,6,7,8 except questions 2,5.
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])
2. 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
Transcribed Image Text: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]) 2. 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
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])
2. 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
Transcribed Image Text: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]) 2. 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
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY