Need Help!! can someone give me a start on program

Prof. H is running a large class with exactly 70 students. He has prepared a text file (grades.txt, see below) that contains all the grades for the class. As the end of the semester is approaching, he would like to identify two cutoff points, Pa and Pb, in order to convert from the points grades that he has to the letter grades. A student whose grade is greater than or equal to Pa will get a letter grade A; A student whose grade is less than Pa but greater than or equal to Pb will get a letter grade B; otherwise, the student would get a C or D under his discretion.

This task can be achieved in three steps:

1. create an int array of size 70 and read all the grades from the grades.txt file that Prof. H provides to the array. (It is guaranteed that the class has exactly 70 students.)

2. Sort the array in descending order.

3. Use the values of 25th element in the sorted array as Pa, and the 50th element as Pb. Print them out to cout.

Note:
For the sorting task, you could borrow the sort function presented in Chapter 13 (in the case study on pages 655-658, the so-called straight-selection sort). However, their sort function uses a for statement; you must re-implement the straight-selection sort with a while statement.
You must also change it so that it sorts number in descending order.
harrisdd wrote:
can someone give me a start on program
OK here:
1
2
3
4
5
6
#exlude >oiriver<

double secondary{}
(
    type [[ 'goodbye world' [[ startl:
)
Topic archived. No new replies allowed.