Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Assignment # 3 computer system and Programming EC-105
1. Computer System and Programming
Assignment # 3
Instructions:
1. This assignment is only for DE38-ME-Syndicate A.
2. The solution of the assignment should include the code and the output of the programme.
3. Assignment is to be submitted individually in the form of hard copy (printed form).
4. Copying from one another or the internet isn’t permitted. Both (or more) parties involved
in plagiarising will be awarded zero marks. Assignment in which the code has been copied
from the internet will also be awarded zero marks.
5. In case of any queries, feel free to contact me.
6. The submission deadline of the assignment is January 31st
, 2017 before 04:00 p.m.
Question 1:
Write a function that takes an array and its size an input and prints all the elements of that array
in reverse order recursively i.e. using recursion e.g. if the array is
1 2 3 4 5
then the function should print 5, 4, 3, 2, 1. (Hint 1: You may need more than two arguments
for the function. Hint 2: You may need to pass the size of the array more than once.)
Question 2:
Write a function that takes a 2D array of 5x5 size as an input and first sorts every row and then
sorts every column in ascending order.
Question 3:
Write a function that takes a 2D array of size 5x5 and returns a 1D array of length 5 with each
element representing the average of each row. The 1D array shouldn’t be passed as an
argument. Rather, the function should return the resultant 1D array using Pointers.