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 可以看到全部内容