Home > Back-end >  C the midterm homework bosses into the urgent request
C the midterm homework bosses into the urgent request

Time:09-22

Experiment 2 student performance management program
A, program module




Second, the program runs the main interface




Account and password verification of program run first (3 second chance), third time validation fails, will suspend the program to run;
After verification through menu options, can choose to perform the corresponding operation,
Is only 0, the program to stop running,
Three, the function that there are two ways to get the grades input: keyboard input students information or read from the file information,


Results query provides two ways: according to the student id or name query student information,


Results sorting offer five ways of sorting, i.e., mathematics, physics, chemistry, average score, score, students will be sorted information screen output,

Success: according to the input of student number to delete student information and to the rest of the student information screen output,

Result output, namely the screen output,

Data: the student information written to the file,
Four, USES the linear table data structure (array) sequential storage structure for related operation,

Define the type of "elements" (that is, the structure type) :

Struct Student
{int num.//student id
char name[20];//name
Int score [5];//, respectively, for mathematics, physics, chemistry, average score and total score
}

Create an array of "elements" type:

Macro definition MAX information for storing students maximum capacity,
The default 100 struct Student stu (MAX) create an array of element types, store Student data
Int M deposit as a global variable number of student information, namely the number

CodePudding user response:

Definition is clear, step by step in accordance with the requirements to do

CodePudding user response:

Topic request is clear, step by step according to the requirement to bai, you be lazy or not, or which module can't write?

CodePudding user response:

Recently didn't listen to online classes, useless mind, there is a job only to find that you won't, pull down a lot, who help me bai, homework should pay right away,,,
  • Related