Professional Documents
Culture Documents
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........................................................................................................9
ASSIGNMENT 2 ANSWERS
P4.
Page |1
Page |2
Page |3
Page |4
2. Run application:
Menu:
Page |5
Select 2 from menu: Output
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 Input student ID: Pass
allow input ID and Input student grade
Grade
2 Select number 2 from menu Display screen the The student's Pass
IDs and Grades informations #i:
were input + ID:
+ Grade:
3 Select number 3 from menu Display screen the The highest grade Pass
student(s) who has is:
highest score The ID of student
who has highest
grade is:
4 Select number 4 from menu Error Display ‘Invalid Fail
value, please re-
Page |7
enter your choice!’
And display Menu
5 Select number 0 from menu Quit the application Quit the application Pass
6 Select number 7 Error Display ‘Invalid Fail
value, please re-
enter your choice!’
And display Menu
7 Input ID = 1 Store student ID Student ID = 1 and Pass
Input Grade = 50 and grade into aray grade = 50 were
stored into array
8 Input ID = 4 Store student ID Student ID = 4 and Pass
Input Grade = 30 and grade into aray grade = 30 were
stored into array
9 Input ID 2 Display maximum Display ‘The Pass
Input Grade = 100 score highest grade is:
Select 3 from the menu 100
The ID of student
who has highest
grade is:2’
10 Input ID 3 Display minimum Display ‘The lowest Pass
Input grade = 0 score grade is: 0
Select 4 from the menu The ID of student
who has highest
grade is:3’
Page |8
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]
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 |9