You are on page 1of 16

Higher Nationals in Computing

Unit 0: Procedural Programming


ASSIGNMENT 2

Learner’s name:
ID:
Class:
Subject code:
Assessor name:

Assignment due: Assignment submitted:


ASSIGNMENT 2 FRONT SHEET

Qualification BTEC Level 5 HND Diploma in Computing

Unit number and title Unit 0: Write a program and test

Submission date Date Received 1st submission

Re-submission Date Date Received 2nd submission

Student Name Student ID

Class 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:

Grade: Assessor Signature: Date:

Signature & Date:


ASSIGNMENT 2 BRIEF

Unit Number and Title 1: Programming


Academic Year 2018
Unit Tutor Doan Trung Tung
Assignment Title Assignment 2
Issue Date
Submission Date
IV Name & Date

Learning Outcomes and Assessment Criteria

Pass Merit Distinction

LO3 Be able to implement procedural programming solutions


LO4 Be able to test procedural programming solutions

P4 Write a program that M3 Program is written following D2 Evaluate your program,


implements the designed coding standards, input data are state lessons learnt and
solution. validated. future improvements.

P5 Test the program with M4 Analyse test results for future


proper test plan. maintenance.
Assignment Brief
Scenario: Please refer to scenario in Assignment 1.
Tasks 1
Your next task is to implement the software that you designed in previous steps. You need to
implement the software designed in assignment 1 using C programming language. Your code
must make use of programming standards, including file headers and effective code
commenting. You need to provide screenshots of your program when running. During the
development of your program, if you make any changes to the original design, state them with
reasons in report. Your code listings must be included as an appendix.
Task 2
Test your program by making a test plan, execute it and log results. Your test plan should
include data validation and program operations based on requirements. Test results (passed or
failed) should be analysed to help the program in future maintenance.
Task 3
Write an evaluation and conclusion of the whole development. The evaluation of your program
should be based on its running and its test result. You should mention about lessons learnt
and future improvement.
A final report of these 3 tasks must be submitted in PDF format to CMS.

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

P4. A student management program...............................................................1

4.1 The application to manage student

4.2 Run application

P5. Test the program with proper test plan......................................................7

5.1 A table of test plan

Reference........................................................................................................9
ASSIGNMENT 2 ANSWERS
P4.

1. A student management program

Page |1
Page |2
Page |3
Page |4
2. Run application:
Menu:

Select 1 from menu: Input

Page |5
Select 2 from menu: Output

Select 3 from menu: Print highest and lowest grade


Page |6
Select 0 from menu: Exit

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

You might also like