1 Asm2
1 Asm2
1 Asm2
Learner’s name:
ID:
Class:
Subject code:
Assessor name:
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
❒ Summative Feedback: ❒ Resubmission Feedback:
Submission Format
The submission is in the form of a Word document. You are required to make use of appropriate structure,
including headings, paragraphs, subsections and illustrations as appropriate, and all work must be supported
with research and referenced using the Harvard referencing system.
Table of Contents
Reference.............................................................................................................. 8
ASSIGNMENT 2 ANSWERS
P4.
Page |1
Page |2
Page |3
Page |4
2. Run application:
Menu:
P5.
5.1 Test the program with proper test plan.
Test What is being tested Expected outcome Actual outcome Pass
numbe or
r Fail
1 Select number 1 from menu Display screen to allow Input student ID: Pass
input ID and Grade Input student grade
2 Select number 2 from menu Display screen the IDs The student's Pass
and Grades were input informations #i:
+ ID:
+ Grade:
3 Select number 3 from menu Display screen the The highest grade Pass
student(s) who has is:
highest score The student(s) who
has highest grade
is:
4 Select number 4 from menu Display screen the The lowest grade is: Pass
student(s) who has The student(s) who
lowest score has lowest grade is:
5 Select number 5 from menu Quit the application Quit the application Pass
6 Select number <1 or >6 Error Display ‘Your Fail
option invalid.
Please try again!’
And display Menu
7 Input ID = 1 Store student ID and Student ID = 1 and Pass
Input Grade = 50 grade into aray grade = 50 were
stored into array
8 Input ID = 2 Store student ID and Student ID = 1 and Pass
Input Grade = 100 grade into aray grade = 50 were
stored into array
9 Input ID 5 Display maximum score Display ‘The Pass
Input Grade = 100 highest grade is
Select 3 from the menu 100. ID 5 has
Page |6
highest grade’
10 Input ID 3 Display minimum score Display ‘The lowest Pass
Input grade = 0 grade is 0. ID 3 has
Select 4 from the menu lowest grade’
REFERENCES
Perforce.com (2018). Coding standards for quality and compliance [online] Avaiable at:
https://www.perforce.com/resources/qac/coding-standards [Accessed 19 Jun.2020]
Page |7
Contini,C (2018). Secure coding: understanding input validation [online] Avaiable at:
https://littlemaninmyhead.wordpress.com/2018/02/18/secure-coding-understanding-
input-validation/ [Accessed 19 Jun.2020]
Dmitri, P (2019). Coding like Shakespeare: Practical function naming convenions [online]
Avaiable at: https://dmitripavlutin.com/coding-like-shakespeare-practical-function-naming-
conventions/ [Accessed 23 Jun.2020]
energy.gov . Program Evaluate: Lessons Learned [online] Avaiable at:
https://www.energy.gov/eere/analysis/program-evaluation-lessons-learned [Accessed 19
Jun.2020]
locusassignments.com (2016). Procedural programming Assignment Sample. [online]
Available at: https://www.locusassignments.com/solution/unit-18-procedural-
programming-assignment-sample[Accessed 23 Jun. 2020]
Page |8