logo

Higher National Certificate Assignment 2022

25 Pages5515 Words15 Views
   

Added on  2022-02-26

Higher National Certificate Assignment 2022

   Added on 2022-02-26

ShareRelated Documents
1
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
Ho Nguyen Phu Bao
Assignment Title
Analysis and Design a solution for procedural programming
problem

Issue Date

Submission Date

IV Name & Date
Vo Minh Tri
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
features of procedural
programming.

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.

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
Higher National Certificate Assignment 2022_1
2
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.
Higher National Certificate Assignment 2022_2
1
Table Of Contents

Assignment Brief 1 (RQF)
......................................................................................................1
Higher National Certificate/Diploma in Computing
................................................................1
Introduction
...........................................................................................................................2
Chapter 1: Procedural Programming and Programming Languages (P1, M1) ...............................3

1.1 What is Programming Language?
.......................................................................................3
1.2 Procedural Programing
...................................................................................................5
1.2.1 What is procedural programming and why is it so important?
......................................5
1.2.2 Characteristics of procedural programming language
..................................................6
Procedural or Procedure Oriented Programming (POP):
......................................................6
Main Characteristics of POP:
............................................................................................6
1.2.3 Key features of procedural programming
...................................................................6
Chapter 2: Analysis (P2)
.........................................................................................................7
2.1 Variables and data types
.................................................................................................8
2.1.1
Variables ...........................................................................................................8
2.2 Conditional statements and loop statement needed in the problem ....................................10

2.2.1.
“If” statement function ......................................................................................10
2.2.2
“If Else” statement function ...........................................................................10
2.2.3.
“Switch case” statement function........................................................................11
2.3. Loop statement........................................................................................................14

2.3.1. “For” statement function....................................................................................14

2.3.2. “Do while” statement function ........................................................................14

2.4. Functions.................................................................................................................15

Chapter 3: Design the solution to the problem(P3, M2) ............................................................16

3.1 USE Case ...................................................................................................................16

3.2 Flowcharts ..................................................................................................................17

3.2.2 Input and Print name and grade of students ..............................................................18

3.2.3 Menu Control. ......................................................................................................18

3.2.4 Student Rankings. .................................................................................................19

3.2.5 Find Max Grade. ...................................................................................................20

3.2.6 Find Min Grade.....................................................................................................21

Chapter 4: Evaluate Problem (D1)..........................................................................................22

Conclusion ..........................................................................................................................22

References...........................................................................................................................23
Higher National Certificate Assignment 2022_3
2
Table Of Figure

Figure 1- Programming Language
...........................................................................................3
Figure 2-ENIAC
.....................................................................................................................4
Figure 3- Programming Languages Ranking (Source: www.tiobe.com)
........................................4
Figure 4 - Code Python
...........................................................................................................5
Figure 5- Example of Procedural Programming
.........................................................................5
Figure 6- Hello Word in C language
.........................................................................................6
Figure 7- Global Variable and Local Variable
...........................................................................7
Figure 8- Another Libraries
.....................................................................................................7
Figure 9 - : Data types in C language (Mishra, 2021)
..................................................................9
Figure 10 - Variables and Data types in this program ...............................................................10

Figure 11 - Example for using "if" statement function .............................................................10

Figure 12 - Example of using "if-else" statement functio..........................................................11

Figure 13 - Hierarchy diagram program .............................................................................12

Figure 14 - Example of using "switch case" statement function .........................................13

Figure 15 - Example of using "for" statement function .......................................................14

Figure 16 - Example of using "Do-while" statement function .............................................15

Table Of Diagram

Diagram 1 - Use Case Diagram..............................................................................................16

Diagram 2- Input Students.....................................................................................................17

Diagram 3- Menu control ......................................................................................................18

Diagram 4-Student Rankings .................................................................................................19

Diagram 5-Find Max Grade...................................................................................................20

Diagram 6- Find Min Grade ..................................................................................................21

Introduction

This is the first time I doing an assignment but I will try my best to get an M grade. With the
development of social, nowadays, the application of technology is becoming more and more
popular. Therefore, it requires students of information technology to improve their knowledge even
more. However, to build a solid house, you need a solid foundation. That's why Procedural
Programming (PROG102) is a very important subject for an information technology student like
me. This course has helped me to understand more deeply about the components of the computer
such as CPU, RAM, ROM; Learn more about system numbers like Octal, Hexadecimal and how to
convert between system numbers. Also, I know more about how an operating system works. The
most special is the C programming language. Although it is an old language, it has helped me
understand the steps to solve problems, the syntax, and loops in programming, ... Here It's a huge
step for me to learn more about programming in the future.

In assignment, I will perform 3 chapter
Higher National Certificate Assignment 2022_4
3
Chapter 1: I will introduce programming languages, procedural programming. And the main
functions of procedural programming.

Chapter 2: I will present the libraries, variables, statements, and loops that I plan to use in the
program and explain how I intend to use them.

Chapter 3: I will present the flowchart, work breakdown structure and use case diagram I will use in
the program about interpreting them with Pseudo code.

Chapter 1: Procedural Programming and Programming Languages
(P1, M1)

1.1 What is Programming Language?

From time immemorial, when humans first appeared on earth, they created language to
communicate with each other. Language is used to express one's meaning and feelings
towards

others, through which people understand each other. As people developed, they also began to
create languages that were not used for normal communication, but a way for them to
"communicate" with computers. Programming language is a tool we use to create a program
for the computer so that the computer follows instructions and produces the results that the
programmer wants. The computer will process the programming language in binary form and
output the result in the same form. Programming languages will help us translate from binary
code to an output that we humans can understand. A programming language is made up of
lots of statements, loops, functions, strings, arrays, external libraries and symbols that act as
connectors that allow humans to translate our thoughts into instructions that the computer can
understand. (Team, 2021)

Figure 1- Programming Language

The year 1946 when the first computer ENIAC (Electronic Numerical Integrator and Computer)
was also a big turning point in the history of human development. Soon after, a series of
programming languages were born. Up to now, when people are entering the era of computers, of
the 4.0 era with technology being a great driving force to boost the economy. Programming
languages. Concepts like blockchain bigdata or artificial intelligence were also born to serve that
purpose. To meet those needs, programming languages must increasingly be easier to understand so
that programmers can use them fluently, but also need to meet the complex requirements of the
digital economy.
Higher National Certificate Assignment 2022_5
4
The first question most programmers ask is: “What language should we learn first”. But as I
mentioned above, a programming language is just a tool to help people and computers understand
each other better. Up to now, there are more than 700 different programming languages. It can be
mentioned as C, Java, Python, Ruby, C#,...

Figure 3- Programming Languages Ranking (Source:
www.tiobe.com)
Each language has its own strengths and weaknesses. Programming languages are used depending
on the needs of society. For example, in an era where machines are gradually replacing humans like
now, concise and easy-to-understand languages like Python are used a lot because of this language,
the rising trend of Machine Learning becomes a booming development. Even big companies like
Google or Facebook are creating chatbots and virtual assistants to replace humans.

Figure 2-ENIAC
Higher National Certificate Assignment 2022_6

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Higher Nationals in Computing
|20
|3323
|33

Fundamental of Computer Programming
|31
|4645
|46

Unit 1: Programming Submission
|58
|8377
|153

Object Oriented Programming Assignment 2022
|26
|4542
|15

CPC50210 Diploma of Building and Construction
|10
|1651
|121

Cloud Computing Solutions Assignment 2022
|27
|4750
|19