Objective: Demonstrate an understanding of array processing.
1. Write a function that accepts the name of a file, an array of strings, and the size of the array. Display each character of each string vertically to the file. For example, if the array is called with an array of 3 strings "hello", abc, bye, the output will be:
h
e
l
l
o
....
y
e
Test your function with a string declaration of:
string name[] = {"hello", "abc", "bye"};
2. Write a function that accepts a 2-dimensional array of double values. The function returns the lowest value of the entire array. In your main function, define a 2-dimensional array as following, call the function, and display the lowest value.
define constant variables MAXROW = 3 and MAXCOL = 4 before the main function as global constants.
23.5 35 2 10
4.5 3 45 3.5
35 44 5.5 9.6
You can ask the user for the above data or initialize the array as in the following:
The header of the function is as follows:
double findLowest(double [][MAXCOL])
The lowest value should be 2.