Docsity

Algorithm Analysis and Implementation: A Student Assignment on Student List Management, Assignments of C programming

Toggle sidebar
bg1
ASSIGNMENT 1 FRONT SHEET
Qualification
BTEC Level 5 HND Diploma in Computing
Unit number and title
Unit 1: Programming
Submission date
15/06/2021
Date Received 1st submission
Re-submission Date
Date Received 2nd submission
Student Name
Phạm Văn Hiệp
Student ID
GCS200581
Class
GCS0904_NX
Assessor name
Thái Thị Thanh Thảo
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Algorithm Analysis and Implementation: A Student Assignment on Student List Management and more Assignments C programming in PDF only on Docsity!

ASSIGNMENT 1 FRONT SHEET

Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Unit 1: Programming Submission date 15/06/2021^ Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Phạm Văn Hiệp Student ID GCS Class GCS0904_NX Assessor name Thái Thị Thanh Thảo

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 HIEP Grading grid P1 M1 D x

Contents

Chapter 1 - State your simple business problems to be solved

1.1 Overview about Algorithm

Definition: “ an algorithm is a series of instructions telling a computer how to transform a set of facts about the world into useful information. The facts are data, and the useful information is knowledge for people, instructions for machines or input for yet another algorithm. There are many common examples of algorithms, from sorting sets of numbers to finding routes through maps to displaying information on a screen.” [1] Figure 1: Algorithm Here is an example of the sum of two numbers [2]. The algorithm includes:

  1. Start
  2. Read A, B
  3. sum = A + B
  4. Print or display sum
  5. Stop Flowchart:

2nd iteration: (1 4 2 5 8) - > (1 4 2 5 8) (1 4 2 5 8) - > (1 2 4 5 8), Swap due to 4 > 2 (1 2 4 5 8) - > (1 2 4 5 8) (1 2 4 5 8) - > (1 2 4 5 8) Now, the sequence is sorted, but our algorithm doesn't recognize it immediately. The algorithm will need one more iteration to finish the sorted sequence as and when it goes from start to finish without any swaps being done. 3rd iteration: (1 2 4 5 8) - > (1 2 4 5 8) (1 2 4 5 8) - > (1 2 4 5 8) (1 2 4 5 8) - > (1 2 4 5 8) (1 2 4 5 8) - > (1 2 4 5 8) Algorithms are an integral part of programming. It helps increase performance help programs operate efficiently at high speed and save resources and most important of all is to help programmers better understand the program. Algorithms also can be used to find solutions for problems in life.

1.2 Represent a small and simple problem

In this section, I want to analyze one issue is to create one system to manage student list. [5] First, we need to create a login system to the software to increase the security of student information so that teachers and students can easily access the system. The system will help teachers add, edit and delete easily, while students do not.

Next, we need to analyze what we need the student list management system for. The student roster includes student ID, name, date of birth, grade level, gender, ethnicity, and address, along with the number of days attended or absent. We will further verify that if a student has been absent from school for more than 14 days, that student will be automatically removed from that class list. Chapter 2 - Analyze the problem and design the solutions by the use of suitable methods

2.1 Analyze the problem

Login system is described by the following algorithm:

  1. Start
  2. Run the software
  3. Login
  4. Test system
  5. If true - > login successful - > Go to step 7
  6. Else if false - > login failed - > Go back to step 3
  7. End To help the login software distinguish students and teachers when logging into the system, we need to create a student and teacher ID system. This system helps to limit student ID rights, students can only follow the list and can report an error if their information is wrong. Teacher ID will have more access to the system such as adding, editing, deleting student information and receiving student feedback reports.
  • Chapter 1 - State your simple business problems to be solved.......................................................................................
    • 1.1 Overview about Algorithm
    • 1.2 Represent a small and simple problem
  • Chapter 2 - Analyze the problem and design the solutions by the use of suitable methods
    • 2.1 Analyze the problem
    • 2.2 Flowchart
  • References
  • Figure 4: Flowchart

Figure 5: Diagram References [1] Jory Denny, October 16, 2020 10.00pm AEDT, what is an algorithm? How computers know what to do with data, Available at: https://theconversation.com/what-is-an-algorithm-how-computers-knowwhat- todo-with-data- 146665. (06/2021) [2] Draw a flowchart to calculate the sum of two numbers, Available at: https://www.sarthaks.com/133405/draw-a-flowchart-to-calculate-sum-of-two- numbers. (06/2021) [3], [4] Nguyễn Văn Hiếu, 2021, Available at: https://nguyenvanhieu.vn/thuat-toan-sap-xep-bubble-sort. (06/2021) [5] ngocmt, March 27, 2017, References in: https://fditech.vn/phan-mem-quan-ly-truong-hoc-va- cacchucnang-co-ban-p6c9 33. (06/2021)