Procedural Programming Assignment for HNC/D in Computing: Managing Grades of a Class, Assignments of Computer Networks

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

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 1 (RQF)
Higher National Certificate/Diploma in Computing
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/2021
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
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Procedural Programming Assignment for HNC/D in Computing: Managing Grades of a Class and more Assignments Computer Networks in PDF only on Docsity!

Assignment Brief 1 (RQF)

Higher National Certificate/Diploma in Computing

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

  • Identify the variables and data types required in the program.
  • Identify and describe 2 different selection structures, including the condition(s) to check; state why they are needed and where they can be used in the context of the scenario.
  • Identify and describe any iteration constructs.
  • Split the program into functions (sub-functions) and draw a hierarchy diagram to illustrate the structure of your program. Task 3 You need to use a drawing tool to draw design diagram for your program, includes:
  • A use case diagram for actions required
  • Flow chart diagrams for: menu operation, printing IDs and grades, finding max grade and finding min grade.
  • Review / evaluate your design, state clearly pros vs cons and which needs to improve, using characteristics of procedural programming as bases to discuss. Write a report for 3 tasks above and submit the report to CMS in PDF format. Submission Format The submission is in the form of an individual written report. This should be written in a concise, formal business style using single spacing and font size 12. You are required to make use of headings, paragraphs and subsections as appropriate, and all work must be supported with research and referenced using the Harvard referencing system. Please also provide a bibliography using the Harvard referencing system.

Contents

Assignment Brief 1 (RQF).................................................................................................... 1 Higher National Certificate/Diploma in Computing.................................................................... 1

P1, M1. Provide an introduction to procedural programming and discuss on

characteristics and features of procedural programming.

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.

P3, M2. Design a procedural programming solution for a given problem and

review the design of a procedural programming solution.

• WBS

  • Use-case diagram

Figure 1: Menu Explain flowchart:

  • Step 1: Start
  • Step 2: Declair varaiable “option”
  • Step 3: Display menu
  • Step 4: Input “option”
  • Step 5: Is “option” =
    • if yes -> Go to “input ID and grade student”
    • if no, go to step 6
  • Step 6: Is “option” =
    • if yes -> Go to “Print all”
    • if no, go to step 7
  • Step 7: Is “option” =
    • if yes -> Go to “Display statics”
  • if no, go to step 8
  • Step 8: Is “option” =
    • if yes -> Go to step 9
    • if no, Display warning” Invalid input” and go back to step 3
  • Step 9: Stop. Figure 3: Student ID & Student Grades Explain flowchart:
  • Step 1: Start
  • Step 2: Set arrayID ID, arrayGrade, i=
  • Step 3: Display arrayID[i], Display arrayGrade
  • Step 4: i = i+1.
  • Step 6: Is i last index?
    • if yes, Go to step 7
    • if no, go back to step 3
  • Step 7: End

[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-