OUTLINE ASM1 Programming 2022
OUTLINE ASM1 Programming 2022
INFORMATION TECHNOLOGY
ASSIGNMENT 1
UNIT: PROGRAMMING
STUDENT :
CLASS :
STUDENT ID :
Student declaration
I certify that the assignment submission is entirely my own work and I fully understand the
consequences of plagiarism. I understand that making a false declaration is a form of malpractice.
Student’s signature:
Grading grid
P1 M1 D1
Performed by …..
❒Summative Feedbacks: ❒Resubmission Feedbacks:
Performed by P
ACKNOWLEDGMENTS
First of all, I would like to thank my mentor Nguyen Hoang Anh Vu for his constant support
in my studies and research, for his patience, motivation, enthusiasm and rich knowledge. His
guidance has helped me throughout the time of studying and writing this thesis. Without your
wonderful help, I would not have been able to achieve this.
In addition to my mentor, I would like to thank my friends who have helped me improve my
knowledge of my subject. Not only that, they are always there to support me when I need it. And
besides, I would like to thank the school for creating all conditions for me to have adequate facilities
to help me complete my work.
Last but not least, I would like to thank my family: my parents Phan Dinh Quy and Lam Thi
Tam, who gave birth to me from the beginning and supported me spiritually. They are always behind
to care and help me have more motivation to complete the work well.
Performed by P
ASSURANCE
I declare that this is my work, based on my research, and that I have recognized all materials
and sources utilized in its production, including books, papers, reports, lecture notes, and any other
type of document, electronic or personal communication. I further declare that I have not previously
submitted this assignment for assessment in any other unit, except where explicit permission has
been granted by all unit coordinators involved, or at any other time in this unit, and that I have not
duplicated or stolen ideas from the work of others in any way.
I verify that the work I've submitted for this assignment is all my own, and that all
research sources have been properly credited.
Performed by P
TABLE OF CONTENT
INSTRUCTOR/ SUPERVISOR/ ASSESSOR……………………………………………………………………………… ............ i
REVIEWERS……………………………………………………………………………………………………………….………. ............ ii
ACKNOWLEDGMENTS……………………………………………………………………………………………………............…. iv
ASSURANCE……………………………………………………………………………………………………………….............……….v
TABLE OF CONTENT…………………………………………………………………………………………………………............…vi
LIST OF TABLES AND FIGURES………………………………………………………………………………………............……vii
LIST OF THE ACRONYM…………………………………………………..………………………………………..……............…..ix
INTRODUCTION………….………………………………………………………………………………………………………………….1
CHAPTER 1: ALGORITHMS, ISSUES RELATED TO ALGORITHMS AND BASIC PROGRAMMING .............. 2
1. Define basic algorithms to carry out an operation and outline the process of programming an
Application (LO1)………………………………………………………………………………….............................………..2
1.1 Provide a definition of what an algorithm is and outline the process in building an
Application (P1)...………………………………………………………………………………………………............……….2
1.1.1 Define Algorithms………............……………………………………………………………….……………..…2
1.1.2 The process in building an application……..............………………………………….……………...11
1.2 Determine the steps taken from writing code to execution ( M1)..............…………………..…16
1.3 Examine the implementation of an algorithm in a suitable language. Evaluate the
relationship between the written algorithm and the code variant (D1)………………………………………..18
CRITICAL EVALUATION....................................................................................................................18
CONCLUSION…………………………………………………………………………………………………….............……………..19
REFERENCES………………………………………………………………………………………………………...........….……….….20
Performed by P
LIST OF TABLES AND FIGURES
Performed by P
LIST OF THE ACRONYM
CLR Common Language Runtime
CSC Common Service Center
GUI Graphical User interface
IBM International Business Machines
JSC Joint Stock Company
I/O Input/Output
PE Portable Executable
RAM Random Access Memory
Performed by P
INTRODUCTION
Programming plays an extremely important role in life. Coming to this report, we will learn
about algorithms, problems related to algorithms and basic programming. It will help us understand
more deeply what is an algorithm, how is an algorithm defined? What is the process of building an
algorithm, and how does the algorithm work? Let's find out in this assignment!
This report includes the following:
Chapter 1: Algorithms, issues related to algorithms, and basic programming.
1. Define basic algorithms to carry out an operation and outline the process of programming
an application.
1.1 Provide a definition of what an algorithm is and outline the process in building an
Application.
Performed Student: 1
CHAPTER 1: ALGORITHMS, ISSUES RELATED TO ALGORITHMS
AND BASIC PROGRAMMING
Define basic algorithms to carry out an operation and outline the process of
programming an application. (LO1)
1. Provide a definition of what an algorithm is and outline the process in
building an application. (P1)
1.1 Define Algorithms
1.1.1 An algorithm is a method or technique that is used
to solve a problem. It works by having your computer do
a series of predefined actions that define how to
accomplish something, and your computer will execute
it exactly the same way every time.
1.1.2 Đưa ra ví dụ thuật toán
Figure 1-1: Algorithms
1.2 Ways to demonstrate algorithms
1.2.1 Pseudocode
- Nêu định nghĩa:
- Đưa ra ví dụ:
1.2.2 flowchart
- Nêu định nghĩa:
- Đưa ra 2 ví dụ:
Flowchart symbols:
- is a diagrammatic representation of an algorithm
- It uses a variety of symbols to describe the steps necessary to solve an issue.
Performed Student: 2
Figure 1-15: Flowchart symbols
More information:
- The shape of the oval indicates whether the algorithm is at its beginning or end. Its material
is generally divided into two sections: "beginning" and "ending."
Performed Student: 3
The following are some examples of flow charts in schematic form:
- The program begins initially, then reads two numbers, a and b, as
shown in the flow chart.
- The program proceeds by adding two numbers, a and b.
- And lastly, the program writes the result on the screen and exits.
This is one of the program's most basic algorithms.
- Finiteness: An algorithm should have finite number of steps and it should end after a finite time.
- Input: An algorithm may have many inputs or no inputs at all.
- Output: It should result at least one output.
- Definiteness: Each step must be clear, well-defined and precise. There should be no any ambiguity.
- Effectiveness: Each step must be simple and should take a finite amount of time
Performed Student: 5
Source code:
Performed Student: 10
Note: When multiple algorithms are used to solve a problem, the solution is the same. We
should select the most efficient algorithm. It will aid in the faster and better performance of our
software.
1.4 The process in building an application.
A set of basic algorithm steps for carrying out a task:
Defining or analyzing the problem
Design (Algorithm)
Coding
Documenting the program
Compiling and running the program
Debugging and testing
Maintenance Figure 1-21: The software development cycle
Defining and Analyzing the Problem:
- We investigates the issue in this stage. we determine
the most effective method for resolving these issues. Studying
an issue is also important since it aids a programmer in making
decisions concerning the following: Figure 1-22: Analyzing the Problem
The data and statistics required for the program's development.
The way the program will be put together.
In addition, the language in which the program will work best.
What is the desired output and in what format is it required, …etc.
Performed Student: 7
Figure 1-26: The software development cycle
Performed Student: 8
Step 1: Planning. We will use IDE Microsoft visual studio with C# programming language.
Performed Student: 10
Step 5: Testing
Firstly, I try three random numbers to see if the equation works like it should?
Performed Student: 12
Compiling Source Code into Managed Module:
- The.NET framework has its own compiler for each
language. JavaScript has a Jscript compiler, for example, and
C# has a C# compiler.
- A Managed Module is created whenever source
code is generated by the proper compiler. Figure 1-37: Module that is being managed
- If we write a console program and build it, we will get an.exe file. When we construct a web
application,.dll files are generated.
- The Managed Module is a Windows Portable Executable (PE) file that contains the following
components:
PE Header
CLR Header
Metadata
Combining newly created managed module into the assembly / assemblies:
- The terms "assembly" and ".dll" or ".exe" refer to the same thing. There are several
software files in a web application that are developed in various languages. This assembly integrates
and assembles into a single unit. It also includes pictures (sometimes known as resource files) and a
number of controlled modules.
Performed Student: 13
Executing the assembly in & by CLR:
- The acronym CLR stands for Common Language Runtime. It's the brains behind the.NET framework, and it's
what allows a program to run on a computer.
- Garbage collection, code verification, memory management, code access security, and IL to Native
translation are some of the features provided by CLR.
- PE Header, CLR Header, Metadata, and Address Table values are all visible.
Step1: Your boss wants you to do a currency conversion program for 5 countries UK,
USA, Japan, China, Japan. Because in the
near future, Vietnam will open to tourists after the
covid season. Boss Vu has high expectations from
you and promises to promote you if you do well
Step 2: flowchart
Performed Student: 14
Performed Student: 15
Figure 1-17-4
Step 3: code
Performed Student: 16
Performed Student: 17
Figure 1-18: code
Step 4: Debug
Figure1-20: Fix.
Step 5: Run
-I enter password 12345 choose 1 and write USD enter the amount to change is 3000 and
it comes out 66885000
P
CRITICAL EVALUATION
P
CONCLUSION
After completing this report, I understood and grasped how to build a basic algorithm, the
process to execute a program, the life cycle of an algorithm, how to draw a flow chart to explain
How does the algorithm work?
Programming is really amazing! thanks to it I understand how the devices around us work.
This is very interesting and fantastic. Thankyou my Mentor!
P
REFERENCES
1. hnglobal.highernationals.com (2021). Cloud Computing, Computing & Digital Technologies
Resource Library [online]. Available:
https://hnglobal.highernationals.com/subjects/computing/resource-library. [Accessed 18 June
2021].
Performed Student: 20