Docsity

Assignment 1: unit 1 programming, Assignments of Programming Paradigms

Toggle sidebar
bg1
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 submission
Student Name Student ID
Class Assessor name
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
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download Assignment 1: unit 1 programming and more Assignments Programming Paradigms 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 Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Student ID Class Assessor name 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 D

❒ Summative Feedback: ❒ Resubmission Feedback: Grade: Assessor Signature: Date: Lecturer Signature:

Contents

  • ASSIGNMENT 1 FRONT SHEET.......................................................................................................................................................................................................
  • I. Introduce....................................................................................................................................................................................................................................
  • II. Algorithm................................................................................................................................................................................................................................... - 1. Definition of algorithm....................................................................................................................................................................................................... - 2. Characteristics and example of algorithm..........................................................................................................................................................................
    • III. Seven steps of building an application..................................................................................................................................................................................
    • IV. Solve problems using algorithms..........................................................................................................................................................................................
        1. Problem..............................................................................................................................................................................................................................
        1. Analysis..............................................................................................................................................................................................................................
        1. Menu of the program.........................................................................................................................................................................................................
        1. Functional analysis...........................................................................................................................................................................................................
    • V. Conclusion...........................................................................................................................................................................................................................

I. Introduce

As we all know, all efforts and “intelligence” of the researcher are clearly shown in the report. The report aims to help students consolidate industry knowledge through research, outreach and industry insights. The report will discuss the definition, characteristics of algorithm, and how to different paradigms programming. Last but not least, the report will help you develop kills as communication literacy, critical thinking and interpretation which are crucial for gaining employment and developing academic competence.

II. Algorithm

  1. Definition of algorithm Algorithm is one of the foundation of programming. There are many definitions of algorithm, but we can understand, an algorithm is a step-by-step description of the solution to a problem. For example, you want to complete the task from Hanoi to Saigon. You will need “algorithm” to buy tickets -> catch grab to the airport -> fly to Saigon. In another case, for example, if you want to search for the name “Lin” in your school transcript, you will find the letter L ->find the letter Li -> and so on. Those are but few examples of where we can apply algorithm in everyday life as well as in jobs. In computer science, finding a good algorithm is very important for the program. Algorithm help to describe the solution a problem or task; by in identifying the data and the process needed to represent the problem and the steps needs to produce the desired result. In addition, the algorithm has input and output. In short, an algorithm must solve the job when we put in the data. Not all procedure can be called an algorithm. The algorithm has five important characteristics of algorithms.
  2. Characteristics and example of algorithm
    • Algorithms are well-ordered: The algorithm should be clear and unambiguous. The specific order of each step in an algorithm must be clear. Each step should be clear and only a definite purpose.
    • Algorithms have efficient computational operations: Each operation in an algorithm must be doable.
    • Algorithms have unambiguous operation: Each operation in an algorithm must be clear for the computer to understand. The algorithm must be clearly expressed by transparent statement; the statements are arranged in a defined order.

Pc1: code of the program

III. Seven steps of building an application

There are seven steps of programming as follows:

  • Step 1: Design the Programming Objectives: When planning a program, the first thing we need to do is to understand the needs of our customers and determine what is required of the application. Then we can identify the necessary input and the desired output.
  • Step 2: Design the Program: After building a general picture of what the program should do, the next is to find out how to operate it. In other words, this is the algorithm building steps. Another, the algorithm should have all the characteristics of any algorithm. Things to consider when designing the program include choosing a user interface and choosing a way to represent the data.
  • Step 3: Write the cope: Next, a design for the program is ready, the programmer starts writing the cope. We must write programs that can write codes in other programming language like C, C++, C#, Python, java or whatever else. The documentation can be included the code, or written in a separate file.
  • Step 4: Compile: The next step is to translate from the source code language which human can understand into the machine language for the computer to understand. This is the job of the compiler. The computer also looks foe errors inside the code. After verifying that the code is error free, the compiler translates it into executable code ready to run.
  • Step 5: Compiling and running the Program: Compiling is a matter of translating a source file from human readable to machine readable format. Generally, source files are compiled on a unit by unit basis. Running is getting some binary executable (or a script, for interpreted language) to be, well…executed as a new process on the computer. Programmers can compile and run the program inside the IDE.
  • Step 6: Test and Debug the Program: The source code being complied and executed doesn’t mean the program is ready to use. The purpose of testing is to find bugs and errors. Testing is done during every phase of program development. There are many mistakes that the programmer can make such as applying the wrong algorithm, or ignoring certain data requirements. The purpose of debugging is to correct those bugs found during testing. Another way is to use support from IDE.
  1. Functional analysis Flowchart - Main menu

Pc4: Search book

V. Conclusion

To sum up, the report has provided the definition and characteristics of algorithm, as well as the step of building an application. Another, an example of algorithm quality is also demonstrated. The report also discusses a number of programming paradigms and their man characteristics. Finally, an analysis of Integrated Developments is provided, it will be used to develop and help track any issues with the code. References:

  1. Algorithm Definition. Link: https://techterms.com/definition/algorithm
  2. Study.com (2020). Link: https://study.com/academy/lesson/what-is-an-algorithm-in-programming-definition-examples-analysis.html
  3. Algorithm in Programming | Significance Of Algorithm in Programming Link: https://www.educba.com/algorithm-in-programming/
  4. En.wikipedia.org (2019) Algorithm characterizations Link: https://en.wikipedia.org/wiki/Algorithm_characterizations
  5. Q. Describe the characteristics of algorithms? Explain the procedure and recursion in algorithm? - Solved Assignments Link: https://sites.google.com/site/assignmentssolved/mca/semester4/mc0080/