Download HIỂU BIẾT VỀ PROGRAMMING and more Study notes Information Technology in PDF only on Docsity!
BTEC FPT INTERNATIONAL COLLEGE
INFORMATION TECHNOLOGY
ASSIGNMENT 2
UNIT: PROGRAMMING
STUDENT : NGO NGUYEN NHAT LINH
CLASS : SE
STUDENT ID : BD
SUPERVISOR : NGUYEN HOANG ANH VU
Da Nang, August 2023
ASSIGNMENT 2 FRONT SHEET
Qualification BTEC Level 4 HND Diploma in Computing Unit number and title Unit: Programming Submission date 07/08/ Date received (1st submission)
Re-submission date Date received (2nd submission) Student name Ngo Nguyen Nhat Linh Student ID BD Class Assessor name Nguyen Hoang Anh Vu 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:
Nhat Linh
Grading grid: P2 P3 P4 P5 M2 M3 M4 D2 D3 D
Perfomed Student: Ngo Nguyen Nhat Linh ii
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, Ms. Nguyen Thi Huong and Mr. Ngo Quang Thanh 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!
Perfomed Student: Ngo Nguyen Nhat Linh iii Declaration of the learner I verify that the work I've submitted for this assignment is all my own, and that all research sources have been properly credited. Signature of the student: Date: Nhat Linh
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.
Perfomed Student: Ngo Nguyen Nhat Linh v
Perfomed Student: Ngo Nguyen Nhat Linh vi
- IDE. (P4).......................................................................................................................... 4.1 Explain the debugging process and explain the debugging facilities available in the
- 4.1.1 Definition Debugging..................................................................................
- 4.1.2 Debug process.
- 4.1.3 Analyze and give example debugging.
- 4.2 Outline the coding standard you have used in your code. (P5)
- 4.2.1 Naming Standard in Console.
- 4.2.2 Naming Standard in C# Winforms.
- applications. (M4) 4.3 Evaluate how the debugging process can be used to help develop more secure, robust
- CRITICAL EVALUATION...................................................................................................
- CONCLUSION...................................................................................................................
- REFERENCES
- Figure 1: Procedural programming system (POP)........................................................... LIST OF TABLES AND FIGURES
- Figure 2: Coures code find the largest number in 3 number
- Figure 3: Code run
- Figure 4 Oject-oriented programming system (OOPs)
- Figure 5 Classes
- Figure 6 Object
- Figure 7 Data abstraction
- Figure 8 Data encapsulation............................................................................................
- Figure 9 Inheritance
- Figure 10 Polymorphism
- Figure 11 Overloading and Overriding
- Figure 12 Binding
- Figure 13: Message Passing
- Figure 14 Coures code of Money Management Using Inheritance In C#
- Figure 15 Coures code of Money Management Using Inheritance In C#
- Figure 16 Coures code of Money Management Using Inheritance In C#
- Figure 17 Code run
- Figure 18 Event driven programming (EDP)..................................................................
- Figure 19 Coures code of login interface and create an account
- Figure 20 Coures code of login interface and create an account
- Figure 21 Coures code of login interface and create an account
- Figure 22 Code run
- Figure 23 IDE
- Figure 24 Visual Studio
- Figure 25 Visual Studio
- Figure 26 Visual Studio 1.0 (1991) Perfomed Student: Ngo Nguyen Nhat Linh vii
- Figure 27 Visual Studio 1.0 (1991)
- Figure 28 Visual Studio 6.0 (1998)
- Figure 29 Visual Studio .NET (2002)
- Figure 30 Visual Studio
- Figure 31 Visual Studio
- Figure 32 Visual Studio
- Figure 33 Visual Studio
- Figure 34 Visual Studio
- Figure 35 Cross-platform
- Figure 36 Hierarchical Storage
- Figure 37 Multitasking screen.......................................................................................
- Figure 38 Code support
- Figure 39 Git support
- Figure 40 Multilingual support
- Figure 41 Powerful code editor......................................................................................
- Figure 42 Debugging
- Figure 43 Build and Deploy
- Figure 44 User Interface Design....................................................................................
- Figure 45 Code Analysis and Testing
- Figure 46 Microsoft Azure Integration
- Figure 47 Flowchart of first interface
- Figure 48 Flowchart of second interface
- Figure 49: Open Visual Studio.......................................................................................
- Figure 50: Create New Project
- Figure 51: Select Console App (.Net Framework)
- Figure 52: Create Name Perfomed Student: Ngo Nguyen Nhat Linh viii
- Figure 53 Add the statement "using System.Windows.Forms;"
- Figure 54 Create Winforms
- Figure 55 Create Winforms
- Figure 56 Choose the tools
- Figure 57 Design is complete
- Figure 58 Set up the properties section
- Figure 59 Double-click on each component
- Figure 60 Code each function
- Figure 61 Code each function
- Figure 62 Code each function
- Figure 63 Code each function
- Figure 64 Code each function
- Figure 65 Student management
- Figure 66 Code each function
- Figure 67 Debugging
- Figure 68 Debugging
- Figure 69 Debugging
- Figure 70 Connect Two Winforms
- Figure 71 Code run
- Figure 72 Code run
- Figure 73 Code run
- Figure 74 Code run
- Figure 75 Code run
- Figure 76 Error
- Figure 77 Debug of error
- Figure 78 Error Perfomed Student: Ngo Nguyen Nhat Linh ix
- Figure 79 Debug of this code
- Figure 80 Error
- Figure 81 Error
- Figure 82 Debug of Error
- Figure 83 Error
- Figure 84 Error
- Figure 85 Debug of error
- Figure 86 Variable Naming
- Figure 87 Use meaningful and self-explanatory
- Figure 88 Provide clear comments
- Figure 89 Avoid using the same names
- Figure 90 Be consistent with naming
- Figure 91 Use Pascal Case or Camel Case
- Figure 92 Avoid using acronyms or parts
- Figure 93 Always use English
- Figure 94 Use Pascal Case
- Figure 95 Use Camel Case for names starting with a lowercase letter
Perfomed Student: Ngo Nguyen Nhat Linh 1
INTRODUCTION
Programming plays a very important role in life. It will help us understand more deeply what an algorithm is, and understand programming models such as procedural programming, object-oriented programming, the structure of a program, data, basic data, and introduction. Give students knowledge of IDE rules of naming in code. At the same time, helping stu- dents have the knowledge to build basic applications. Coming to this report, we will learn about the characteristics of procedural, object-oriented and event-driven programming, conduct an analysis of a suitable Integrated Development Environment (IDE). Let's find out in this assignment. This report includes the following: Chapter 1: Explain the characteristics of procedural, object-oriented and event-driven programming, conduct an analysis of a suitable integrated development environment (ide). (LO2) ➢ Give explanations of what procedural, object-oriented and event-driven paradigms are; their characteristics and the relationship between them. (P2) ➢ Analyze the common features that a developer has access to in an IDE. (M2) Chapter 2: Implement basic algorithms in code using an IDE. (LO3) ➢ Write a program that implements an algorithm using an IDE. (P3) ➢ Use the IDE to manage the development process of the program. (M3) Chapter 3: Determine the debugging process and explain the importance of a coding standard. (LO4) ➢ Explain the debugging process and explain the debugging facilities available in the IDE. (P4) ➢ Integrates many programs such as code completion, compiler, editor Outline the coding standard you have used in your code. (P5) ➢ Evaluate how the debugging process can be used to help develop more secure, robust applications. (M4)
Perfomed Student: Ngo Nguyen Nhat Linh 2
CHAPTER 2 : EXPLAIN THE CHARACTERISTICS OF PROCEDURAL, OBJECT-
ORIENTED AND EVENT-DRIVEN PROGRAMMING, CONDUCT AN ANALYSIS OF
A SUITABLE INTEGRATED DEVELOPMENT ENVIRONMENT (IDE). (LO2)
2.1 Give explanations of what procedural, object-oriented and event-driven paradigms are; their characteristics and the relationship between them. (P2) 2.1.1 Procedural oriented programming (POP) ❖ Definition POP Procedure oriented programming is the conventional way of programming where an application problem is viewed as a sequence of steps. In procedure oriented programming the problems is broken down into various modules such as data entry reporting querying modules etc. The procedure-oriented programming is the traditional approach of programming for developing application software. There are two types of data, which are associated with these modules, one is global and another is local data. ❖ The characteristics of POP Figure 1 : Procedural programming system (POP)
Perfomed Student: Ngo Nguyen Nhat Linh 4
- Coures code:
- Code run: 2.1.2 Oject-oriented programming system (OOPs) ❖ Definition OOPs
- Object-Oriented Programming (OOP) is a programming paradigm in computer science that relies on the concept of classes and objects. It is used to structure a software program into simple, reusable pieces of code blueprints (usually called classes), which are used to create individual instances of objects. There are many object-oriented programming languages, including JavaScript, C++, Java, and Python. Figure 2 : Coures code find the largest number in 3 number Figure 3 : Code run
Perfomed Student: Ngo Nguyen Nhat Linh 5 ❖ The characteristics of OOPs
- Classes: Are blueprints or patterns created to create objects. They encapsulate data and methods that define the object's attributes and actions. Figure 4 Oject-oriented programming system (OOPs) Figure 5 Classes
Perfomed Student: Ngo Nguyen Nhat Linh 7
- Data encapsulation: The bundling data (attributes) and methods that operate on the data within a single unit (class). It helps control access to the data and ensures data security.
- Inheritance: The ability of a class (child/subclass) to inherit properties and behaviors from another class (parent/superclass). This promotes code reusability and allows for creating specialized classes based on existing ones. Figure 9 Inheritance Figure 8 Data encapsulation
Perfomed Student: Ngo Nguyen Nhat Linh 8
- Polymorphism: Objects can have many forms and have different behaviors. The ability of objects to take on multiple forms and exhibit different behaviors based on the context.
- Overloading and Overriding: Methods can be defined with the same name but different parameters (overloading) and derived classes can provide their own implementation of inherited methods (overriding). Figure 10 Polymorphism Figure 11 Overloading and Overriding