1. Trang chủ
  2. » Tất cả

Asm1 c sharp aaaaaaaaaaaaaa

16 0 0

Đ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

Thông tin cơ bản

Định dạng
Số trang 16
Dung lượng 611,42 KB

Nội dung

ASSIGNMENT 1 FRONT SHEET Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Unit 1 Programming Submission date Date Received 1st submission Re submission Date Date Received 2nd.

ASSIGNMENT FRONT SHEET Qualification BTEC Level HND Diploma in Computing Unit number and title Unit 1: Programming Submission date Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Duong Van Thanh Son Student ID GCD201619 Class GCD1002 Assessor name Hoang Nhu Vinh 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  Summative Feedback: Grade: Lecturer Signature:  Resubmission Feedback: Assessor Signature: Date: Table of Contents State your simple business problems to be solved I 1) Overview about Algorithm 2) Represent a small and simple problem II Analyse the problem and design the solutions by the use of suitable methods 1) Analyse the problem 2) Flowchart III Demonstrate the compilation and running of a program 10 1) Introduce how the program is solved and screen shots source code of the result 10 2) Run the program 12 3) Explain briefly what Software Development Life Cycle is 13 IV 1) EVALUTATE 13 Include Test cases 14 2) Evaluate how the problem is solved from the designed algorithm to the execution program written by a specific programming language: 14 V References 15 References 15 I State your simple business problems to be solved 1) Overview about Algorithm Algorithms give us the most ideal option of accomplishing a task to improve the efficiency of a computer program, proper utilization of resources WHAT ALGORITHM MEANS? An algorithm is a finite sequence of well-defined, computer-implementable instructions, typically to solve a class of specific problems or to perform a computation Algorithms are always unambiguous and are used as specifications for performing calculations, data processing, automated reasoning, and other tasks In contrast, a heuristic is a technique used in problem solving that uses practical methods and/or various estimates in order to produce solutions that may not be optimal but are sufficient given the circumstances An example about an algorithm 2) Represent a small and simple problem Firstly, I will introduce the C# language It used in algorithm to solved problem C# is a general object-oriented programming (OOP) language for networking and Web development C# is specified as a common language infrastructure (CLI) language In January 1999, Dutch software engineer Anders Hejlsberg formed a team to develop C# as a complement to Microsoft’s NET framework Initially, C# was developed as C-Like Object Oriented Language (Cool) The actual name was changed to avert potential trademark issues In January 2000, NET was released as C# Its NET framework promotes multiple Web technologies II Analyse the problem and design the solutions by the use of suitable methods 1) Analyse the problem There is a basic example about a problem that can solve by algorithm A teacher wants to manage grade of his class He asks you to help him to create a small application to manage them He needs to enter name, ID, grade of students Then he needs to print information and grade together After read clearly the scenario, I solved it by using an algorithm based on C# language to create a program must have full option that satisfy the requirement of teacher We need to create an application to enter name, score, ID 2) Flowchart Step 1: START Step 2: DECLARED the variable n, ID[], grade[], name[], flag Step 3: SET flag=false Step 4: Print menu Step 5: Input option in Step 6: If option=1 then Step 6.1: Call input() Step 6.2: SET flag=true Step 6: ELSE (flag=false) is true, return Step Step 7: IF option=2 then CALL showInfo() Step 8: WHILE option != 3, repeat Step Step9: STOP Main of application Step 1: START Step 2: PRINT (“Input total student (3-30) ”) Step 3: PRINT ("1 Input information") Step 4: PRINT ("2 Show information") Step 5: PRINT ("3 Exit") Step 6: PRINT (“Input your choice: “) Step 7: STOP Menu list of application Step 1: START Step 2: DECLARE the variable i Step 3: INPUT n; Step 4: WHILE n30 is true , return Step Step 6: SET i=0 Step 7: WHILE i

Ngày đăng: 21/03/2023, 18:18

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN