







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 unit focusing on procedural programming. Students are required to create a small application to manage grades of a class by inputting student IDs and grades, storing the information in arrays, and displaying the highest and lowest grades. learning outcomes, assessment criteria, and tasks to identify variables, data types, selection structures, iteration constructs, and design diagrams.
Typology: Assignments
1 / 13
This page cannot be seen from the preview
Don't miss anything!








Unit Number and Title Unit 0: IT Fundamental & Procedural Programming Academic Year 2021 Unit Tutor Assignment Title Analysis and Design a solution for procedural programming problem Issue Date Submission Date 25/6/ IV Name & Date Ph m Văn Hi pạ ệ Learning Outcomes and Assessment Criteria Pass Merit Distinction LO1 Understand the principles of procedural programming LO2 Be able to design procedural programming solutions P1 Provide an introduction to procedural programming M1 Discuss on characteristics and features of procedural programming D1 Critically evaluate the design of your solution against the characteristics and P2 Identify the program units and data and file structures required to implement a given design M2 Review the design of a procedural programming solution. features of procedural programming. P3. Design a procedural programming solution for a given problem Assignment Brief Scenario: A math teacher wants to manage grades of a class. He asks you to help him to write a small application to do that. He needs to enter student IDs, student’s grades and store these information into 2 separate arrays (integer array for IDs and float array for grades). Then
he needs to print all student IDs together with their grades. Finally, he needs to know which student has highest grade and lowest grade. Your program should be menu based with the options above. When an option is done, the program should go back to the main menu so he can choose another option. There should be an option to quit program. Task 1 To prove your programming ability to be appointed to this small project, please prepare an illustrated guide on programming in general and a particular emphasis on procedural programming. Here you will need to include introduction to computer programming languages and discuss key features of procedural programming. Task 2 Your next task is to do the analysis for the scenario mentioned above by doing the following subtasks
Assignment Brief 1 (RQF).................................................................................................... 1 Higher National Certificate/Diploma in Computing.................................................................... 1
Definition: “ A programming language is a language that is standardized according to a specific set of rules so that programmers can describe programs that work for electronic devices but also for humans. and those devices understand it. ” [1] The vocabulary of computer only includes 1 and 0 (binary). Programming Language Procedural programming or POP, is a style of programming in which calculations in a program are based on estimating the value of procedures or processes (consisting of a set of different statements) in a particular order determined from top to bottom.
I will use arrays because instead of declaring variables discretely, like ID1, ID2, …, you can declare an array of values like ID [0], ID [1] and … ID [ 1000] to represent the number of students to declare. I've been using conversion functions statement to declare the various options that the user selected to report. In my program, there will 5 options:
1. Input ID and Grade student 2. Print all student information 3. The highest grades 4. The lowest grades 5. Close the program Conditional statements needed in the problem If-else statement function and the switch-case statement: - In my program the if statement is used to find the highest or lowest point in the memory entered by the user. If the variable returns the minimum value (min), the largest variable returns the value (max). - The switch-case statement is a branched structure & control can be replaced entirely by an if-else structure. However, the use cases will make it easier to write code and enjoy them more readable; Another case is to use the switch seems to give better performance than using if-else. ● Loop statement needed in the problem. The do-while loop: − The do-while loop is quite similar to the while loop. While loop will run the loop body at least 1 time whether the condition is true or false. The do-while loop checks for the loop condition after doing the job.
Figure 1: Menu Explain flowchart:
[1] Thao Pham, September 22, 2020, Ngôn ngữ lập trình là gì? 10 Ngôn ngữ phổ biến và 5 công dụng của chúng , Available at: https://magenest.com/vi/ngon-ngu-lap-trinh/ Esther Cohen, Mar 5, 2018 , What is WBS (Work Breakdown Structure) in Project Management? Available at: https://www.workamajig.com/blog/guide-to-work- breakdownstructures-wbs Sagar Bhatia, 08 Jan, 2021, Procedural Programming [Definition], Available at: https://hackr.io/blog/procedural-programming C# Do while loop, 2020, Available at: https://www.tutorialgateway.org/csharp-do-while-loop/ Wikipedia, 2021, Programming language, Available at: https://en.wikipedia.org/wiki/Programming_language Bùi Thủy, 2018, Mảng (Array) trong C/C++ , Available at: https://quantrimang.com/mang-array- trong-cplusplus-