Array Assignment
Array Assignment
Assignment#06
Instructions:
• Do Not Copy! Anyone caught being indulged in the act of plagiarism
would be awarded minus 100% marks in the assignment.
• Read the complete statement carefully before starting the implementation.
• Do not discuss with each other.
• Partial submission will be accepted and evaluated, therefore, submit what
is done by you without taking help from anyone.
• Submit on LMS and paste code and output of code on a word file and
submit its printed copy in class.
• Submission will not be allowed after deadline.
Submission Guidelines:
• Assignment submission in class (6th February 2023).
• Copy code on a word document along with output screenshot. Submit
word file on LMS and printed copy in class.
• Deadline of Assignment on LMS: 11:59 pm 5th February 2023
Question 1:
Write a menu driven C++ program to do following operation on two dimensional array A of size
m x n. The options are:
Question 2:
Write a user defined function named Upper-half() which takes a two dimensional array A, with
size N rows and N columns as argument and prints the upper half of the array.
e.g.,
2 3 1 5 0 2 3 1 5 0
7 1 5 3 1 1 5 3 1
2 5 7 8 1 Output will be: 1 7 8
0 1 5 0 1 0 1
3 4 9 1 5 5
Write a menu driven C++ program to do following operation on two dimensional array. Perform
the following operations:
add two array A and B of size m x n
to multiply array A and B of order NxL and LxM
Question 3: Read id numbers, project scores and exam scores in two dimensional array via input
from user. Compute the averages of each project and exam scores; Compute and display the
average score and ids of the scorers.