Question: Write teh program in C++ 1. (10 points) Write a C++ function, lastLargestIndex, that takes as parameters an int array and its size and returns

Write teh program in C++

Write teh program in C++ 1. (10 points) Write a C++ function,lastLargestIndex, that takes as parameters an int array and its size and

1. (10 points) Write a C++ function, lastLargestIndex, that takes as parameters an int array and its size and returns the index of the last occurrence of the largest element in the array. Also, write a program to test your function 2. 40points) Write a program that reads students' names followed by their test scores. The program should output each student's name followed by the test scores and the relevant grade. It should also find and print the highest test score and the name of the students having the highest test score. Student data should be stored in a struct variable of type student Type, which has four components: student FName and student LName of type string, testscore of type int (test Score is between 0 and 100), and grade of type char. Suppose that the class has 20 students. Use an array of 20 components of type studentType. Your program must contain at least the following functions: a. A function to read the students' data into the array. b. A function to assign the relevant grade to each student. c. A function to find the highest test score. d. A function to print the names of the students having the highest test Score

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!