Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

1 Asm2

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 15

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

4.1 The application to manage student........................................................................................1

4.2 Run application.......................................................................................................................5

P5. Test the program with proper test plan

5.1 A table of test plan..................................................................................................................6

Reference.............................................................................................................. 8
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

Select 2 from menu: Output

Select 3 from menu: Print highest grade

Select 4 from menu: Print lowest grade


Page |5
Select 5 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 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

You might also like