Assignment 1 1618 Programming (Merit) Greenwich

40 7 0
Assignment 1 1618 Programming (Merit) Greenwich

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

A Greenwich winform programming assignment received Merit points. Language C. This assignment will provide detailed reports about library management software, common c code syntax in C programming, APIE rules in objectoriented programming are all used.

ASSIGNMENT FRONT SHEET Qualification BTEC Level HND Diploma in Computing Unit number and title Unit 1: Programming Submission date 08/12/2022 Re-submission Date Date Received 1st submission Date Received 2nd submission Student Name Tran Duc Long Student ID GCH210562 Class GCH1106 Assessor name Pham Danh Tuyen 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 Page of 39 Page of 39  Summative Feedback:  Resubmission Feedback: 3.1 3.2 3.3 Grade: Assessor Signature: Lecturer Signature: Page of 39 3.4 Date: Table of Contents A Introduction: B Task - State your simple business problems to be solved (P1) 1.1 What is the algorithm? a Dentition: b Characteristics of algorithms: 1.2 Represent a small and simple problem C Task - Analyse the problem and design the solutions by the use of suitable methods (P1) 2.1 Analyse the problem: 2.2 Flowchart: 12 2.3 A use case diagram for actions required: 17 D Task - Demonstrate the compilation and running of a program (P1 – M1) 18 3.1 Introduce how the problem is solved 18 3.2 Source code and a screenshot of the result final 19 Source code and explain 19 Screen shots of the final result: 28 3.3 Explain briefly what is Software Development Life Cycle 31 3.4 Explain how the source code is compiled 32 E Task - Evaluate how the problem is solved from the designed algorithm to the execution program written by a specific programming language (D1) 33 4.1 Test plan: 33 a) Test input: 33 b) Test method 34 c) Test algorithm 35 d) Overall evaluation of testing part 35 4.2 Evaluate how the problem is solved from the designed algorithm to the execution program written by a specific programming language 36 F Conclusion: 36 Reference 37 Page of 39 Table of picture Figure 1: The sort algorithm Figure 2:Characteristics of algorithm Figure 3:Algorithm is clear from input to output Figure 4:Finiteness of algorithm Figure 5:Using available resources to handle problems Figure 6:Independent of algorithm Figure 7:Sorting grade of student problem Figure 8:How the bubble sort algorithm works Figure 9: Variables in my program 11 Figure 10: Statements in my program 12 Figure 11: Flowchart system of my program 13 Figure 12:Find student’s information by name 14 Figure 13: pseudocode bubble sort 15 Figure 14: flowchart bubble sort 16 Figure 15: use case my program 17 Figure 16:How my program solves problem 18 Figure 17: Software Development Life Cycle 31 Figure 18: Example about how c# compiler works 32 Table of source code Picture 1: Class Student 19 Picture 2: Method read Password 20 Picture 3:Method to create a student 21 Picture 4:Method to show list student 22 Picture 5:Method to find student by name 23 Picture 6:Method to sort Gpa (Bubble sort) 24 Picture 7: Method Main() 27 Picture 8: Import static using static System.Console 28 Picture 9: show userlogin on console 28 Picture 10: Enter student 29 Picture 11:Show menu 29 Picture 12:Sort gpa on console 30 Picture 13:find student's information by name on console 30 Picture 14:Show list student on console 31 Picture 15: Exit program 31 Page of 39 A Introduction: Everything in our current civilization is modern and inventive Every day, there is a great deal of innovation, particularly in technology We must acknowledge that technology has invaded every part of our life, from basic gadgets like phones and computers to complicated programming programs In this assignment, I will talk about student mark management software, precisely how I can use it, as well as extensive explanations of its features and characteristics, and ultimately an evaluation of the functions and the overall program In addition, I included four alternatives in my application for users to choose from, each with its own purpose and information to allow them to develop a range of programs These capabilities will aid the user in entering student information such as grade or name, as well as finding which students have the highest and lowest grades B Task - State your simple business problems to be solved (P1) 1.1 What is the algorithm? a Dentition: An algorithm is a process or formula for problem-solving It comprises stages, which are a series of operations performed in a certain order to get the intended result For example: The sort algorithm Page of 39 Figure 1: The sort algorithm b Characteristics of algorithms: Figure 2:Characteristics of algorithm Page of 39 + Unambiguous: The algorithm should be explicit and understandable Each of its processes (or stages), as well as its inputs and outputs, should be self-evident and lead to a single meaning Figure 3:Algorithm is clear from input to output + Finiteness: Algorithms must terminate after a predetermined number of steps Page of 39 Figure 4:Finiteness of algorithm + Feasibility: With the existing resources, it should be possible Figure 5:Using available resources to handle problems + Independent: An algorithm should have step-by-step instructions that are not dependent on any computer code Page of 39 Figure 6:Independent of algorithm 1.2 Represent a small and simple problem • To understand algorithms in programming more clearly, I will depict a modest and easy business challenge, which is sorting students by grades in ascending order This is the challenge that most teachers have while classifying students Figure 7:Sorting grade of student problem I will use the bubble sort algorithm to solve this problem because it is easier than other sorting techniques The idea behind this technique is to sort a list of student grades by repeatedly exchanging two consecutive values if they are in the wrong order (the latter grade is less than the prior grade) until the sequence grades are entirely sorted by ascending order Page of 39

Ngày đăng: 24/02/2024, 01:06

Tài liệu cùng người dùng

Tài liệu liên quan