Home > Net >  To solve the
To solve the

Time:09-24

As table 2 student information table (information can also be more students), and design a Windows forms application, according to the user to enter student id query student information:
Table 2 students information table
Name
Student id

in mathForeign language achievement
C # score

Zhang SAN
95001
95
97
87

Li si
95002
93
90
90

Fifty
95003
89
92
86

Functional requirements:
(1) to use an array to save the student information, such as can define a 3 x 5 two-dimensional string array, each line array to save a student's information, arrays are defined as follows:
Students, string []={{" zhang ", "95001", "95", "97", "87"},
{" bill ", "95002", "93", "90", "90"},
{" detective ", "95003", "89", "92", "86"}}
You can also define more students information,
(2) according to the user to enter student id in the array to find the student information:
If you can find the ZhaXue, showed its name, student number, grade and grade point average, as shown in figure 11,
As cannot find ZhaXue number, use dialog displays "the student number was not found, please re-enter your student id!" ,
(3) to generate the installer (released),

Figure 11 query student information
Tip:
(1) the definition of student information array should be button_click method, do not put in any one button_click method,
(2) because the array is defined type string, so the two subjects are conserved as type string, when calculating the grade point average, need to convert subjects to int, then to calculate average scores,

CodePudding user response:

So cold, do not help children to do homework, doesn't even have a reply

CodePudding user response:

Figure 11. Where is the, the problem didn't ask for,

CodePudding user response:

refer to the second floor of guiyang horse Ma Shanfu plugging waterproof engineering professional maintenance of swimming pool response:
where is the figure 11, the questions are not right.

Bosses, friends private chat
  •  Tags:  
  • C #
  • Related