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 IST It contains two parts: student record class from A 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 A
Student class definitions:
It should contain first name, last name, exams grade, labs grade, final grade. Its member functions are default constructor, copy constructors, display students information and override ToString which only display class type, last name, first name, and final grade.
Note: exam grades and lab grades are stored in an array with 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 and all elements in the array set to
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 of final grade.
Exam and exam are of final grade.
Exam is of final grade.
Note: final grade should display 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 Exam Exam Lab Lab Lab Lab Lab 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:
Write readdata method implementation to read the data from the user and store into student record array.
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.
Write searchHighestGrade method implementation to search and return the index of array that has highest final grade student.
Output Example:
LastName, FirstName exam exam exam lab lab lab lab lab final
Anderson, Baily
Thomas, Daily
Thomas, Eason
Woo, Alice
Highest grade in ISTStudents is Thomas, Easons final grade
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
