[SOLVED] UCS548 Assignment 3

25.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (3 votes)

Assignment 3

1. Create an array A with elements (12, 13, 14, 15, 16) and display them.
2. Find the sum of all the elements of A.
3. Find the product of all the element of A.
4. Find the maximum and minimum element of A.
5. Find the range of array A.
6. Find the mean, variance, standard deviation and median of value of A.
7. Sort the element of A both in increasing and decreasing order and store them in B and C.
8. Create a matrix of 3×4 to have the set of natural numbers.
9. Create MxN matrix by combining A, B and C row-wise (RW) and column-wise(CW).
10. Find the 2 and 3 row element of RW.
11. Find the 1 and 4 column of CW.
12. Using both RW and CW find sub-matrices having elements [2, 3] and [2, 4].

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.