Assignment 1 guide
Assignment report structure:
- Complete and fill all required data in the Front page with scan digital
signature.
o Table of contents
o List of Figures
o List of Tables
For evaluators
General requirements while evaluating assignments:
- According to the template sent by BTEC (teachers could provide it if
needed)
- The assignments must contain Front-sheet, References, check plagiarism
(<20%)
- Stick to the learning outcomes described in the Assignment Brief
- The assignments must submit according to the deadline. In case of late
submission, the lecturer has the right to refuse the evaluation
- To give the student a D rating, the lecturer must use words that express
strong feelings about that student's assignment.
LO1: Define basic algorithms to carry out an operation and outline the
process of programming an application
1. Provide a definition of what an algorithm is and outline the process in
building an application (P1)
1.1 Definition of algorithm:
- Definition of algorithm.
- Give an example of algorithms in real life:
1.2 Ways to demonstrate algorithms
+ State 2 ways of expressing the algorithm and give examples
- The first way: Using Pseudocode.
+Khai Niem
+Vi du :
Begin
Display(“hello word “);
end
- The second way: Using flowchart .
+Định nghĩa
+Ví dụ
Các bước để viết thuật toán tốt
1.3 Characteristic of 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
1.4 Steps in program development
Step 1: Analyze and define the problem
Step 2: Create a solution (give an algorithm)
Step 3: Program design
Step 4: Code program
Step 5: Debugging the program
Step 6: Testing
Step 7: Deployment and maintenance
2. Determine the steps taken from writing code to execute. (M1)
Sinh viên xác định bài toán thực hiện: Ví dụ chương trình quản lý sách, quản
lý Nhân Viên…
Bước 1: Xác định nội dung bài toán
Bước 2: Vẽ sơ đồ chức năng của chương trình (sử dụng sơ đồ Flowchart)
Bước 3: Code chương trình
Bước 4: Thực hiện debug lỗi
Bước 5: Chạy chương trình
3. Examine the implementation of an algorithm in a suitable language.
Evaluate the relationship between the written algorithm and the code variant.
( D1)
+ Nêu ví dụ về một bài toán cụ thể (chương trình quản lý sách, quản lý Nhân
Viên…)
- Trình bày thuật toán và viết mã chương trình.
- Đánh giá mối quan hệ giữa thuật toán và mã chương trình.