Menu

Phase II Objectives: This phase aims to introduce sorting and searching techniques. Requirements:

Phase II Objectives: This phase aims to introduce sorting and searching techniques. Requirements: Function 1: Write a function that sorts the total sum array in descending according to the total sum column (Note: don’t forget the ID column) Function 2: Write a function that uses the maximum degree and ID output from function 3 in Phase I, and search in the total array for that ID then prints the student total degree Phase Objectives: At the end of this phase you must be able to be familiar with 2-D arrays, and working arrays in parallel. Requirements: Write a program that has 2 arrays: the first array is a 5*6 array where the first column of it represents the student ID, the other 5 columns represent the degree of the student in 5 courses; and the second array is a 5*2 array, where the first column is the student ID and the second column will contain the sum of the student degrees in all his courses. Write as many functions as you can from the following: – Function1: Write a function that gets the sum of the students from the first array and saves it along with student ID in the second array. Function2: Write a function that returns the min total degree and the student ID who has got it. Function3: Write a function that take the course number as an argument and returns the max degree in this course, and the ID of the student who got it. (Note: Course 1 is stored in column1, course 2 in column 2, ..etc) Function 4: Write a function that take the course number as an argument and prints all the students ID and their degrees in that course as a table.

Expert AnsweR

Answer to Phase II Objectives: This phase aims to introduce sorting and searching techniques. Requirements . . .

OR