Advance programming(c#)

profilesahan
Assignment4.pdf

Assignment 4

Student Record Manage Program with File Stream

Due Date: 4/30/2020 midnight

In Assignment 3, write a program to perform student record manage for class IST311. It contains

two parts: student record class 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, set up ranking by final grade,

and then print out the student ranking list information.

Modify Assignment 3 program to read the student’s information from the file “students.txt”, then

processing students’ information, which are same as assignment 3. In addition, the program needs

to write the students information with grade list into the file “studentGrade.txt”, then ranking the

student by final grade and write to the file “gradeRanking.txt”.

The program should ask the user to choose the method of input student’s information, which are

from keyboard or from file. If the user chose input from file, the program needs to ask the user for

file name; the program need to validate the file.

Keep the “readdata”, “sorting” and “searchHighestGrade” are same as Assignment 3 and add

following functions to your Assignment 3:

Write “readFiledata” function that is the implementation of reading the data from the user input

file and store into student record array.

Write “rankingSort” function that is the implementation of ranking student record by student’s

final grade without moving data and set rank variable to rank number.

Write “displayRank” function that is the implementation of writing the student grade ranking list

to output file “gradeRanking.txt” and to screen. It only displays student’s number of ranks, last

name, first name, final grade.

Write “display” function that is the implementation of writing the student record from student

record array by using student class displayAllGrade( ) function to output file “studentRecord.txt”

and to screen.

Input file format:

6

John Webber 98 87 92 100 67 85 76 89

Eason Thomas 67 87 79 90 56 75 89 88

Alice Wood 88 77 66 55 44 87 96 81

Baily Anderson 67 89 75 92 83 78 68 67

Wendy Bolt 83 86 79 69 90 84 69 89

Daily Thomas 99 88 77 66 55 44 33 22

Note: Zip the whole project folder and add your name to the zip file name as A4-student’s name;

then upload to blackboard before Due Date 4/30/2020 midnight.