HNC/D Computing Assignment 2: Procedural Programming Solution, Assignments of Computer Networks

An assignment brief for a Higher National Certificate/Diploma in Computing student in the Procedural Programming unit. The assignment requires students to implement a software solution designed in a previous assignment using C programming language, test the program, and write an evaluation report. The learning outcomes include implementing procedural programming solutions and testing them.

Typology: Assignments

2021/2022

Uploaded on 08/07/2022

hiep-pham-van
hiep-pham-van 🇻🇳

4.7

(35)

19 documents

1 / 13

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Assignment Brief 2 (RQF)
Higher National Certificate/Diploma in Computing
Unit Number and Title Procedural Programming
Academic Year 2021
Unit Tutor
Assignment Title Analysis and Design a solution for procedural programming
problem
Issue Date
Submission Date
IV Name & Date Ph m Văn Hi p
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
implements the designed
solution.
M3 Program is written
following coding standards,
input data are validated
D2 Evaluate your program,
state lessons learnt and
future improvements.
P5 Test the program with
proper test plan.
M4 Analyse test results for
future maintenance.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download HNC/D Computing Assignment 2: Procedural Programming Solution and more Assignments Computer Networks in PDF only on Docsity!

Assignment Brief 2 (RQF)

Higher National Certificate/Diploma in Computing

Unit Number and Title Procedural Programming Academic Year 2021 Unit Tutor Assignment Title Analysis and Design a solution for procedural programming problem Issue Date Submission Date IV Name & Date Ph m Văn Hi pạ ệ 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 implements the designed solution. M3 Program is written following coding standards, input data are validated D2 Evaluate your program, state lessons learnt and future improvements. P5 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. Also evaluate how procedural programming is applied in your program, state benefits, disadvantages or difficulties. 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.

1. Implementation (P4, M3)

The problem is managing students and finding the highest and lowest scores. So, I will write a student management program using C program. My program has the main tasks, which are:

  1. Input student's information
  2. Print all student's information
  3. Show student with the lowest grade
  4. Show student with the highest grade
  5. Exit

1.1 Explain my code

Global variables:  -stdio.h and stdlib.h  -int S_TotalNumber = 0;  int S_Grade[3000];  char S_Name[3000][250];  void Menu();  void InputInformation();  void PrintAll();  void ShowLowestGrade();  void ShowHighestGrade();  void BackToMenu();  void DisplayStudent();  void DisplayStudentWithGrade(int grade);  float FindHighestGrade();  float FindLowestGrade();  bool IsNoStudent();

Figure 1. Global variables of programFunction "Display Menu"  Display options in the menu like input student ID and grades, view student, find the highest or lowest grades of the student and exit program.  I use switch-case to navigate the selection that I want.

Figure 3. Input Student's Information and Display all studentFunction “Show lowest and “Find highest grade”  Show lowest grade and highest in program.  I use real data type float and for loop. Figure 4. Show lowest and highest gradeFunction” Back to main menu”, Display student information and student score  This code has the effect of returning the option menu.  Print out the student's information and grades that we entered earlier on the screen.

Figure 5. Back to main menu, Display student's information and scoreFind lowest and highest grade  Show lowest grade and highest in program.  I use real data type float, for loop and if statement.

Figure 7. IsNoStudent

2. Program result (P4)

2.1 Screenshot

Figure 8. Menu option Figure 9. Input student's information

Figure 10. Print all student's information Figure 11. Show lowest grade Figure 12. Show highest grade

Find highest grade Select 4 None Display the student has lowest grade Pass