
Assigment – Arrays
Find an algorithm and then write a C++ program that using the appropriate subprogram to:
1. read the size and elements of an array from input; provide in output the value and
position of the element of maximum value
2. read the size and elements of an array from the input; provide in output the average m
and standard deviation σ of the elements present in the array, where:
Assigment – 2D arrays
Find an algorithm and then write a C++ program that using the appropriate subprogram to:
1. read the size and elements of a two-dimensional array from input;
provide in input the value and position of the element of maximum value of each row
2. read the size and elements of a two-dimensional array from the input;
provide in output the average of each columns and write zero in each element of the
column that is lower than the average.
Assigment – arrays and streams
Find an algorithm and then write a C++ program that using the appropriate subprogram open a
file encrypt its content and decrypt it using a given a key
Find an algorithm and then write a C++ program that using the appropriate subprogram like
the function:
void read_matr(ifstream stream, int ** matr, int r, int c )
reads the r x n matrix from the stream and stores it in the two-dimensional array.