Design a menu driven student grade management procedures, management n m exam course grades of students, implement the following basic functions:
(1) to the new student information, and calculate the total peace divide;
(2) according to student id modify, and delete a student information;
(3) able to display all the grades of the students information;
(4) to separate sorted according to total score and student number;
(5) based on student number query the students' basic information;
(6) student achievement final data stored in the file, can the file to read, write student data,
Program is running, the menu form as follows:
Management for Students' scores
1. Append record
6. List record
3. Delete record
7. The Modify record
8. The Search record
6. Sort item first-just in order by sum
7. Sort in ascending order by sum
8. Sort item first-just in order by num
9. Sort in ascending order by num
W. Write to a File
R. Read from a File
0. Exit
Both Please Input your choice:
Requirements in a modular way organization program structure, reasonable design their own custom function, at the same time, the program for exception handling, to check the validity of user input data, there is an error in the user input data, such as the type error) or invalid will not interrupt execution, has certain robustness,
CodePudding user response:
Somehow write a ah, in which module to write not to come out or not solve the mistake to ask again, so you can really master,CodePudding user response: