Professional Documents
Culture Documents
Prog102 ASM2
Prog102 ASM2
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.
Grading grid
P4 P5 M3 M4 D2
Summative Feedback: Resubmission Feedback:
2.1
Line 2: create a structure (a user defined data type) called student, used to store different type of variable
of the student's attributes
Line 7: declare a void function named ‘accept’ with the purpose of letting users enter student information
with many different attributes.
Line 9: this introduces a for-loop that will iterate i through the values 0 through s-1.
Line 19: declare a void function named ‘display’ to print out all student information.
Line 22: this introduces a second for-loop that iterates in the same way as the first.
Line 26: declare int function that return a value named findMax to find the greatest value.
Line 29: introduces a new for-loop that will iterate i through the values 0 through s-1.
Line 30: this is a condition in the ‘for’ function, after assigning an element to ‘max’, it will compare the
elements in the array, if any element is greater than ‘max’, it will become ‘max’.
Line 31: after finding the smallest element in the array by the ‘if’ statement, that element will be assigned
to max.
Line 35: declare int function that return a value named findMin to find the smallest value.
Line 37: introduces a new for-loop that will iterate i through the values 0 through s-1.
Line 38: this is a condition in the ‘for’ function, after assigning an element to ‘min’, it will compare the
elements in the array, if any element is less than ‘min’, it will become ‘min’.
Line 39: after finding the smallest element in the array by the ‘if’ statement, that element will be assigned
to min.
Line 61: the first statement which calls the data in void display function.
Line 65: the second statement which calls the data in ‘int findMax’ function.
Line 67: the third statement which calls the data in ‘int findMin’ function.
In case 3, I can only input one wordwhen entering the student's name and cannot enter the whole name; to
do so, I must add the student's first name, middle name, and last name in the accept function. Another
misunderstanding I have is that names cannot be numbered, but this is possible.
IV. Evaluation
I will talk about the advantages of the program first. In general, the software program has met the
objectives of the scenario and, of course, the needs of the user (teachers). I started by using procedural
programming to solve the issue, the design is straightforward to understand and put into practice, and it is
presented scientifically, the app also includes a variety of different function features that are suited to the
requirements of the user.
In addition to the advantages mentioned above, the system has several shortcomings that need to be fixed.
There are several functions that make it possible for the user to enter student information, but if one
attribute is entered incorrectly, the rest of the student's attributes will be ignored, or worse, the program
will fail and enter an endless loop.
For future improvements, I can add some conditions to the program when the user enters the wrong input
format, the program can notify the user if they entered the wrong format and let allow them to re-enter the
data.
Generally, I have created a complete program for this Assignment 2 based on the evaluation, analysis, and
planning from Assignment 1. The program has been written in its entirety using that information as well
as the preparation. After that, I tested the program and assessed its advantages, disadvantages, as well as
potential improvements. I believe that the program is quite helpful for users.
2.1 Based on the actual presentation and the report, the student presents parts :
Test the program with a proper test plan (Page 11) (basic) .
The student needs to evaluate more about the program, validation, analyse test, state lessons learnt, advantages,
disadvantages, difficulties and future improvements...
(P4, P5)