









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Assignment 2 procedural programming (PROG1618) - PASS If u want Source code of this asm, please inbox FB for a good price: https://www.facebook.com/hstore.teehee
Typology: Assignments
1 / 15
This page cannot be seen from the preview
Don't miss anything!










Qualification BTEC Level 5 HND Diploma in Computing
Unit number and title Unit 0: IT Fundamental & Procedural Programming
Submission date Date Received 1st submission
Re-submission Date Date Received 2nd submission
Student Name Nguyen Xuan Quang Student ID GCS
Class GCS0905C Assessor name Phan Minh Tam
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
P 4 P 5 M3 M 4 D
ASSIGNMENT 2 BRIEF
Unit Number and Title Unit 0: IT Fundamental & Procedural Programming
Academic Year 2021
Unit Tutor
Assignment Title (^) Assignment 2: Write a program and test
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
P 4 Write a program that implements the designed solution.
M3 Program is written following coding standards, input data are validated
D 2 Evaluate your program, state lessons learnt and future improvements.
P 5 Test the program with proper test plan.
M4 Analyse test results for future 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.
P a g e | 1
ASSIGNMENT 2 ANSWERS
1.Application source code:
P a g e | 4
1.Application screenshots:
1.1Show menu:
1.2Function 1 in menu: input id and grade:
1.3Function 2 in menu: show all ids and grades:
P a g e | 5
1.4Function 3 in menu: show highest grades:
1.5Function 4 in menu: show lowest grades:
1.6 Function 5 in menu: exit program:
P a g e | 7
student has lowest grade
allow output ID and Grade of student has lowest grade
Grade of student = 111
Input number of student = 1 Input student ID = 4 Input student Grade= 444
Store number of student, student ID and Grade into array
Number of student = 1, student ID = 4 and Grade = 444 were stored into array Pass
Print ID and Grade of student has highest grade
Display screen to allow output ID and Grade of student has highest grade
Print to the screen student ID = 4 and Grade of student = 444 Pass
Input number of student = 1 Input student ID = 5 Input student Grade= 100
Store number of student, student ID and Grade into array
Number of student = 1, student ID = 5 and Grade = 100 were stored into array Pass
Print ID and Grade of student has lowest grade
Display screen to allow output ID and Grade of student has lowest grade
Print to the screen student ID = 5 and Grade of student = 1 00 Pass
Input alphabet in “option”
Program not running and ask user input again
Program is infinite iteration Fail
Input alphabet in “ID’s student”
The program will run normally and will not display “ID’s student”
Program is infinite iteration
Fail
Input alphabet in “Grade’s student”
The program will run normally and will not display “Grade’s student”
Program is infinite iteration
Fail
Input number of student = 1 Input student ID = 6 Input student Grade= 999
Store number of student, student ID and Grade into array
Number of student = 1, student ID = 6 and Grade = 999 were stored into array Pass
P a g e | 8
Select number 2 from menu
Display screen to allow output ID and Grade
Print all student in array The information of student #1: ID: 1 Grade: 111 The information of student # 2 : ID: 2 Grade: 222 The information of student # 3 : ID: 3 Grade: 333 The information of student # 4 : ID: 4 Grade: 444 The information of student #5: ID: 5 Grade: 100 The information of student # 6 : ID: 6 Grade: 999
Pass