Question 1:
Write a program that initializes the 10 student scores in an array to be zero. It will ask the user to input the scores available. Note that this array of size 10 could be filled up in full or partially. A menu will be displayed afterwards, allowing the user to choose to perform one of the following functions:
1. Count the number of non-zero elements (which means the actual size of the array);
2. Find the maximum and minimum scores in the array through its reference parameters;
3. Find the minimum element among the first n elements (you should ask the user to specify the value for n first, and n should be less than or equal to the actual size of the array);
4. Find the second largest score in the array;
5. Check whether a particular score is found within the f ..
訪客只能看到部份內容,免費 加入會員 或由臉書 Google 可以看到全部內容