







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
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
1 / 13
This page cannot be seen from the preview
Don't miss anything!








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.
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:
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 program Function "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 student Function “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 grade Function” 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 score Find 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
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