+ 2
Hint: - Ask user how many elements required. - Create two arrays, one of string (char), one of double. Number of array elements depends on user input you get in first step. - Create a maxMark value of double type, set to zero. - Use a loop to fill the arrays with names and marks. During the loop, compare the mark input with the maxMark variable, assign mark input into maxMark if maxMark is less than mark input. - Display maxMark after loop finished. - Good luck!
15th Mar 2018, 5:06 AM
Ipang