Assignment 2: Date Received 1st Submission Re-Submission Date Date Received 2nd Submission
Assignment 2: Date Received 1st Submission Re-Submission Date Date Received 2nd Submission
Student declaration
I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that
making a false declaration is a form of malpractice.
Student’s signature
Grading grid
P4 P5 M3 M4 D2
1|Page
Summative Feedback: Resubmission Feedback:
2|Page
TABLE OF CONTENTS
P4. Task 1: Program implements the designed solution..............................................................................5
1 Library function declaration..................................................................................................................5
2 Struct declaration.................................................................................................................................5
3 The student’s ID information input.......................................................................................................5
4 The student’s Name information input.................................................................................................6
5 The student’s Name information input.................................................................................................6
6 Enter list of students from given number of students..........................................................................6
7 Enter single student to the list of students...........................................................................................7
8 Display list of students..........................................................................................................................7
9 Finding the student have highest grade...............................................................................................8
10 Finding the student have lowest grade..............................................................................................8
11 Menu design, call the function and sort the function by item...........................................................9
P5 Task 2. TEST CASE.................................................................................................................................10
1 Input list of students from given number of students........................................................................10
2 Input single students to the list..........................................................................................................11
3 Display list of students........................................................................................................................11
4 Find a student having the highest grade.............................................................................................12
5 Find a student having the lowest grade..............................................................................................12
6 Exit the Program.................................................................................................................................13
Task 3 TEST PLAN OF SCENARIO PROGRAM..............................................................................................14
Task 4. REVIEW AND EVALUATE THE DESIGN............................................................................................16
Advantages:...........................................................................................................................................16
Disadvantages:......................................................................................................................................16
INDEX OF COMMEMT................................................................................................................................17
3|Page
TABLE OF FIGURES
Figure 1: Library Function declaration.........................................................................................................5
Figure 2: Struct declaration.........................................................................................................................5
Figure 3: The student’s ID information input...............................................................................................5
Figure 4: The student’s Name information input.........................................................................................6
Figure 5: The student’s Name information input.........................................................................................6
Figure 6: List of students from given number of students...........................................................................6
Figure 7: Enter single student to the list of students...................................................................................7
Figure 8: Display list of students..................................................................................................................7
Figure 9: The student have highest grade...................................................................................................8
Figure 10: The student have lowest grade...................................................................................................8
Figure 11: Menu design, call the function and sort the function by item....................................................9
Figure 12: Input list of students from given number of students function................................................10
Figure 13: Input single students to the list function..................................................................................11
Figure 14: Display list of students function................................................................................................11
Figure 15: Find a student having the highest grade function.....................................................................12
Figure 16: Find a student having the lowest grade function......................................................................12
Figure 17: Exit the Program function.........................................................................................................13
4|Page
P4. Task 1: Program implements the designed solution.
1 Library function declaration
2 Struct declaration
5|Page
4 The student’s Name information input
This is also where the student's name will be printed on the screen.
The condition of this line of code is to enter 10 characters or more and a maximum of 30 characters.
6|Page
Large amounts of student information can be entered at once.
Besides, there is an additional line Continous to help add single student information whenever you
want.
7|Page
9 Finding the student have highest grade
8|Page
11 Menu design, call the function and sort the function by item
Figure 11: Menu design, call the function and sort the function by item
This is the menu of the program with many necessary choices.
Here we will enter from 0 to 5 to be able to select the part we want to enter in the program.
9|Page
P5 Task 2. RUN THE PROGRAM
1 Input list of students from given number of students
Figure 12: Input list of students from given number of students function
10 | P a g e
2 Input single students to the list
11 | P a g e
4 Find a student having the highest grade
12 | P a g e
6 Exit the Program
13 | P a g e
Task 3 TEST PLAN AND TEST CASE OF SCENARIO PROGRAM
Project Name: Student management program.
Date of creation:20/6/2021
Date of review:23/6/2021
Test Name Task Description Start Date End Date Estimated Efforts Notes
(Hrs./Days)
Test choice from try to choose a 22/6/2021 23/6/2021 1
Menu number that is out of
user choice.
Test Input ID student try to choose any 22/6/2021 23/6/2021 1
number that is not
between 100 and
999.
Test input student Try entering as many 22/6/2021 23/6/2021 1
name characters as the
condition allows.
Test grade as real Try entering real 22/6/2021 23/6/2021 1
munber numbers in the range
0 to 10
Test ID as character Try entering 22/6/2021 23/6/2021 1
character in ID
Test grade as Try entering 22/6/2021 23/6/2021 1
character character in grade
Test Test case prerequisite Test Inpu Expecte Actual output Status
cas objective step t d output Pass/Fai
e ID data l
Test Enter 0<=User 1. 6 Please Pass
cas choice Choice=<5 Enter choose
e1 from Choice again
Menu >5 2.
Enter
14 | P a g e
Test Enter 0<Grade<10 1. M Third - Fail
cas Grade As Enter Enter
e6 Characte Grade Student
r 2.Ente Grade:
r
15 | P a g e
Task 4. REVIEW AND EVALUATE THE DESIGN
Advantages:
-The program runs very well
-The input and output data are good, not missing, and have no particular errors.
-Enter the wrong ID type (100 to 999), the program will start re-entering
Disadvantages:
-This program still lacks some functions to delete students, sort the list of students and return when the
wrong function is selected.
- Issues where incorrect characters are entered in a student's ID entry or a student's grade causes the
software to fail to be restarted.
Based on the above I will try to fix, perfect and enhance the existing and missing functions.
16 | P a g e
INDEX OF COMMEMT
17 | P a g e