Trần Hữu Đức ASM2 Programming 2023
Trần Hữu Đức ASM2 Programming 2023
Trần Hữu Đức ASM2 Programming 2023
COLLEGE
INFORMATION
TECHNOLOGY
ASSIGNMENT 2
UNIT: PROGRAMMING
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:
DUC
Grading grid:
P2 P3 P4 P5 M2 M3 M4 D2 D3
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.
Last but not least, I would like to thank my family, 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!
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.
REVIEWERS.........................................................................................................................ii
ACKNOWLEDGMENTS.......................................................................................................iv
ASSURANCE........................................................................................................................v
TABLE OF CONTENT..........................................................................................................vi
LIST OF ACRONYM.............................................................................................................xi
INTRODUCTION...................................................................................................................1
2.3 Critically evaluate the source code of an application which implements the
programming paradigms, in terms of the code structure and characteristics. (D2).............14
3.2 Use the IDE to manage the development process of the program. (M3).37
3.3 Evaluate the use of an IDE for development of applications contrasted with
not using an IDE (D3)..........................................................................................................41
3.4 Explain the debugging process and explain the debugging facilities
available in the IDE (P4)……………………………………………………………………...….43
3.5 Evaluate how the debugging process can be used to help develop more
secure, robust applications. (M4).........................................................................................50
3.6 Critically evaluate why a coding standard is necessary in a team as well as
for the individual. (D4)..........................................................................................................53
3.7 Outline the coding standard you have used in your code. (P5) ……........53
3.8 Scenario…………………………………………..…………………………….55
3.9 Issues…………………….……………………………………………………..55
3.10 Idea…………………………………….…………………………………..….55
3.11 Describe the idea of the program algorithm….…………………..……….56
CRITICAL EVALUATION……………...………………………………………………………..70
CONCLUSION.....................................................................................................................71
REFERENCES....................................................................................................................72
- To solve the problem, the programs are divided into subroutines, making the
problem simpler and easier to understand.
Figure 5 OOP
Data Abstraction:
-Abstraction is the process of hiding complex implementation details while revealing only
essential features.
Inheritance:
Figure 10 Polymorphism
- OOP provides a clear modular structure for programs which makes it good for defining
abstract datatypes where implementation details are hidden and the unit has a clearly
defined interface.
- OOP makes it easy to maintain and modify existing code as new objects can be
created with small differences to existing ones.
- OOP provides a good framework for code libraries where supplied software
components can be easily adapted and modified by the programmer. This is
particularly useful for developing graphical user interfaces.
Definition
The characteristics of EDP:
Class:
Objects:
Data Abstraction:
Data Encapsulation:
Performed Student: Tran Huu Duc 10
Inheritance:
Polymorphism:
Advantages, disadvantages EDP
An example of EDP
2.1.4 The relationship among event driven programming (EDP) and object-
oriented programming system (OOPs) and procedural-oriented programming (POP).
- Step 2: Find the cause of the error: syntax error, declaration error, algorithm
error...
Performed student Tran Huu Duc 40
- Step 3: Error handling
Error CS0103: The name 'Console' does not exist in the current context.
- This is one of the most basic errors. it's a coder that hasn't added the System
library which is supported by microsoft. This leads to the software's keywords not being
recognized.
-The simplest way is to add the System library to the program with the statement:
using System;
- Once we have added the System library, we see that our program has somewhat
reduced bugs.
+ Ưu điểm
+ Nhược điểm
- When a program confronts the testers and gives erroneous results or fails to
execute, one of the processing duties is debugging. The debugging process improves the
program's robustness and completeness, and it requires it to handle any input or events it
may face.
- To stop hackers clashing and plugging data or crashing systems, apps, powerful
programs will build a restricted detection of weaknesses...
As a result, the debugger is quite useful in our job. Diagnose problems and,
in certain cases, give a solution for the programmer to implement.
- Most IDEs have a debugger, which assists programmers in writing quicker source
code and eliminating as many errors as possible.
Figure 3-34: Look in the error list table for a syntax error
- Step 2: Look over the alert for any problems that may have occurred.
After completing this Assignment with my own efforts and with the help of my
mentor. During my study, he was very dedicated to teaching and always answered the
questions that I posed.
Because I have presented very fully the questions that the Assignment brief raised,
with clear examples, source code that I wrote myself. Moreover, I am confident that I can
self-study and can make a software process for business.