Question: use c# Write a program to perform student record manage for class IST 3 1 1 . It contains two parts: student record class (

use c# Write a program to perform student record manage for class IST311. It contains two parts: student record class (from A2) and main program. It should get the student information from the user and set up student record class array with proper size. The program will perform sorting student record by last name then first name, compute final grade, search highest final grade student, and then display this students information by use ToString() method.
Part I: Student class from A2
Student class definitions:
It should contain first name, last name, 3 exams grade, 5 labs grade, final grade. Its member functions are default constructor, 2 copy constructors, display students information and override ToString(), which only display class type, last name, first name, and final grade.
(Note: 3 exam grades and 5 lab grades are stored in an array with 8 elements, final grade should be read only attribute)
Student class implementation:
The student class attributes: It should have basic accessor methods (get and set).
Default constructor: It sets student class variables to default value. String variables set to None,
double variable set to 0, and all elements in the array set to 0.
2 Copy constructors: It sets student class variables for students information by different number of passes in parameter list. Another one pass in class object for sets students information.
ComputeGrade() method: It base on the % of final grade to compute final grade as follows:
Labs grade is 50% of final grade.
Exam 1 and exam 2 are 15% of final grade.
Exam 3 is 20% of final grade.
Note: final grade should display 2 digits after decimal. It should be private access modifier and called by all constructors of Student class.
DisplayAllGrade() method: It should return string as students information in following sequence with
proper format: Last name, First name, Exam 1, Exam 2, Exam 3, Lab 1, Lab 2, Lab 3, Lab 4, Lab 5, Final Grade (Note: it should not display title in the method)
override ToString() method: It should use GetType() to return string as students information in
following sequence with proper format: GetType(), Last Name, First Name, Final Grade
Part II: main program:
The main program begins with ask the user how many students record first, then enter each students information to set up student record array. Compute all of students final grade in the student record array. Then, call sort method to sort the student record array by last name then first name. Next, display all students list information use Student class DisplayAllGrade() method. Final action search highest final grade student in the student record array and use Student class ToString() method to display highest grade students information.
Three methods:
1. Write readdata method implementation to read the data from the user and store into student record array.
2. Write sorting method implementation to sort the student record array by last name, then first name. (You need to use Array.sort() method, which Student class inherited IComparable library and provide override CompareTo() method in IComparable library for Student class object.)
3. Write searchHighestGrade() method implementation to search and return the index of array that has highest final grade student.
Output Example:
LastName, FirstName exam1 exam2 exam3 lab1 lab2 lab3 lab4 lab5 final
Anderson, Baily 678975928378686777.20
Thomas, Daily 998877665544332265.45
Thomas, Eason 678779905675898878.70
Woo, Alice 887766554487968174.25
Highest grade in IST311.Students is Thomas, Easons final grade 78.7.

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 Accounting Questions!