Docsity

BTEC HND Level 4 Programming, Essays (high school) of Computer science

Toggle sidebar
bg1
Written Report
Algorithm
Algorithm is a set of rules and/or instructions that is defined step-by step on how a work is to
be executed upon to get the expected results. Characteristics of an algorithm are they have
well-defined output and input, clear and unambiguous, finite, language dependent, and
feasible.
Algorithms makes programmers easily create an actual program, because it breaks down the
solution into smaller and much more simpler steps. Algorithms are used in the Student
Management Application in order to sort the data easily, register, and login users.
The algorithm that is used is the Sorting Algorithm. A Sorting Algorithm is used to rearrange a
given array or list of elements according to a comparison operator on the elements. The
comparison operator is used to decide the new order of elements in the respective data
structure (GeeksForGeeks, 2023).
The steps that are taken to create the Student Management Application are:
1. Learn how to do Object-Oriented Programming.
2. Research.
3. Make the Main, Subject, and User classes.
4. Download the JSON.
5. Research and code the application.
6. I also had to learn from the lecture notes to learn more about OOP.
The process of writing code is very hard and extremely challenging. There are plenty of errors in
the code and it may take time for me to fix and solve the problem. It is also time-consuming, so
I needed good time-management in order to finish the assignment as quick and as correct as
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download BTEC HND Level 4 Programming and more Essays (high school) Computer science in PDF only on Docsity!

Written Report

Algorithm

Algorithm is a set of rules and/or instructions that is defined step-by step on how a work is to be executed upon to get the expected results. Characteristics of an algorithm are they have well-defined output and input, clear and unambiguous, finite, language dependent, and feasible. Algorithms makes programmers easily create an actual program, because it breaks down the solution into smaller and much more simpler steps. Algorithms are used in the Student Management Application in order to sort the data easily, register, and login users. The algorithm that is used is the Sorting Algorithm. A Sorting Algorithm is used to rearrange a given array or list of elements according to a comparison operator on the elements. The comparison operator is used to decide the new order of elements in the respective data structure (GeeksForGeeks, 2023). The steps that are taken to create the Student Management Application are:

  1. Learn how to do Object-Oriented Programming.
  2. Research.
  3. Make the Main, Subject, and User classes.
  4. Download the JSON.
  5. Research and code the application.
  6. I also had to learn from the lecture notes to learn more about OOP. The process of writing code is very hard and extremely challenging. There are plenty of errors in the code and it may take time for me to fix and solve the problem. It is also time-consuming, so I needed good time-management in order to finish the assignment as quick and as correct as

possible. The potential challenges are bugs and errors. There are also plenty of things that I didn’t understand, so I had to research about it in order to solve the problem.

Programming Paradigms

Procedural programming is a programming paradigm built around the idea that programs are sequences of instructions to be executed. They focus heavily on splitting up programs into named sets of instructions called procedures, analogous to functions. A procedure can store local data that is not accessible from outside the procedure's scope and can also access and modify global data variables (Deepsource, 2023). Characteristics of procedural programming:  It has predefined functions. (KnowledgeBoat, n.d)  It has local variables. (KnowledgeBoat, n.d)  It has global variables. (KnowledgeBoat, n.d)  It follows a top-down approach. (KnowledgeBoat, n.d)  It is easy to follow the logic of the program. (KnowledgeBoat, n.d) Object-oriented programming, which is also known as OOP, is a style of programming characterized by the identification of classes of objects closely linked with the methods (functions) with which they are associated. It also includes ideas of inheritance of attributes and methods. It is a technique based on a mathematical discipline, called “abstract data types,” for storing data with the procedures needed to process that data. OOP offers the potential to evolve programming to a higher level of abstraction. (Gartner, n.d) Characteristics of object-oriented programming are:  It uses encapsulation.  It uses abstraction.  It uses classes and objects.

Programmers that use event-driven can be altered easily if the programmer wants something to be changed. This paradigm allows the programmer to produce a form of their requirements. Programmers who are event-driven can be put together without too many problems and also the code and design can be easily altered because if something isn't right. (Shah, 2021)

  1. Suitability for Graphical Interfaces Event-driven allows the user to select different tools from the toolbar to directly create what they need such as buttons, radio buttons, etc. This also allows people to put objects where they want them and can directly edit. Some people find it easier to directly click on the thing they want to edit. (Shah, 2021)
  2. Simplicity of Programming Event-driven can make programming easier for some by being able to directly edit the object you want the code for. Another thing that can make the programming easier is that when using an event driven language such as visual basic it usually has predictive coding so when the user is coding it will predict what you want to do from what you are typing. (Shah, 2021)
  3. Easy to Find Natural Dividing Lines it is easy to find natural dividing lines for unit testing infrastructure. (Shah, 2021)
  4. Highly Compostable (Shah, 2021)
  5. Simple and Understandable It allows for a very simple and understandable model for both sides of the DevOps Bridge. (Shah, 2021)
  6. Purely Procedural and Purely Imperative

Both purely procedural and purely imperative approaches get brittle as they grow in length and complexity. (Shah, 2021)

  1. A good way to Model Systems It is one good way to model systems that need to be both asynchronous and reactive. (Shah, 2021)
  2. Allows for more Interactive Programs It allows for more interactive programs. Almost all modern GUI programs use event- driven programming. (Shah, 2021)
  3. Using Hardware Interrupts It can be implemented using hardware interrupts, which will reduce the power used by the computer. (Shah, 2021)
  4. Allows sensors and other hardware It allows sensors and other hardware to easily interact with software. (Shah, 2021) Disadvantages of event-driven programming:
  5. Complex For simple programs, event-driven programming is often more complex and cumbersome than batch programming. (Shah, 2021)
  6. Less Logical and Obvious The flow of the program is usually less logical and obvious. (Shah, 2021)
  7. Difficult to find Error Errors can be more difficult to spot than with simpler, procedural programs. (Shah, 2021)

Advantages of object-oriented programming:  Productivity of software development increased: Object-arranged writing computer programs is measured, as it gives detachment of obligations in object-based program advancement. It is additionally extensible, as articles can be stretched out to incorporate new qualities and practices. Items can likewise be reused inside and across applications. Due to these three variables – particularity, extensibility, and reusability – object-situated programming gives further developed programming advancement usefulness over conventional strategy-based programming methods. (Prasanna, 2022)  Software maintenance improved: For the reasons referenced above, object-oriented programming is likewise simpler to keep up with. Since the plan is secluded, a piece of the framework can be refreshed if there should arise an occurrence of issues without a need to roll out huge scope improvements. (Prasanna, 2022)  Quicker improvement: Reuse empowers quicker advancement. Object-situated programming dialects accompany rich libraries of articles, and code created during projects is additionally reusable in later ventures. (Prasanna, 2022)  Cost of development lowered: The reuse of programming likewise brings down the expense of advancement. Normally, more exertion is placed into the article situated examination and plan, which brings down the general expense of improvement. (Prasanna, 2022)  Good quality software: Faster improvement of programming and lower cost of advancement permits additional time and assets to be utilized in the confirmation of the product. Albeit quality is reliant upon the experience of the groups, object-situated programming will in general bring about greater programming. (Prasanna, 2022) Disadvantages of object-oriented programming:  Steep expectation to learn and adapt: The perspective engaged with object-situated programming may not be normal for certain individuals, and it can invest in some opportunity to become accustomed to it. It is complex to make programs in view of the

cooperation of articles. A portion of the key programming procedures, like inheritance and polymorphism, can be tested to appreciate at first. (Prasanna, 2022)  Bigger program size: Object-arranged programs commonly include more lines of code than procedural projects. (Prasanna, 2022)  More slow projects: Object-arranged programs are normally slower than procedure- based programs, as they ordinarily require more guidelines to be executed. (Prasanna,

 Not appropriate for a wide range of issues: There are issues that loan themselves well to useful programming style, rationale programming style, or strategy-based programming style, and applying object-arranged programming in those circumstances will not bring about effective projects. (Prasanna, 2022)

IDE

An integrated development environment (IDE) is a software application that helps programmers develop software code efficiently. It increases developer productivity by combining capabilities such as software editing, building, testing, and packaging in an easy-to- use application. Just as writers use text editors and accountants use spreadsheets, software developers use IDEs to make their job easier. (Amazon, n.d) Advantages of an IDE are:  IDE’s can be used to create software applications, drivers, and utilities. (Nagathan, n.d)  It allows developing software in any programming language without spending much time on language syntax. (Nagathan, n.d)  IDE has the ability to correct syntaxes, gives a warning about memory leaks, assist in writing quality of code, etc. (Nagathan, n.d)  It has increased efficiency, where you can code faster with less effort, and its features help organize resources, prevent mistakes, and provide shortcuts. (Nagathan, n.d)

when every utility is represented in the same workbench. This can be especially useful for onboarding new developers who can rely on an IDE to get up to speed on a team’s standard tools and workflows. In fact, most features of IDEs are meant to save time, like intelligent code completion and automated code generation, which removes the need to type out full character sequences. (RedHat, 2019) Other common IDE features are meant to help developers organize their workflow and solve problems. IDEs parse code as it is written, so bugs caused by human error are identified in real- time. Because utilities are represented by a single GUI, developers can execute actions without switching between applications. Syntax highlighting is also common in most IDEs, which uses visual cues to distinguish grammar in the text editor. Some IDEs additionally include class and object browsers, as well as class hierarchy diagrams for certain languages. (RedHat, 2019)

Debugging Process

Debugging is the process of finding and fixing errors or bugs in the source code of any software. When software does not work as expected, computer programmers study the code to determine why any errors occurred. (Amazon, n.d) In Visual Studio Code, it already has its own debugger software. But it is not for all programming languages. This is fixed by using extensions. There are official extensions such as, Python, C/C++, C#, Debugger for Java, etc. Debugging is very helpful for me to make the Student Management Application. This is because the debugger finds the bugs and errors in my code, and it also finds a way to solve the problem. The debugging process can be used to help my Student Management Application to be much more secure, robust applications by helping me to identify and fix problems early.

Coding standards are a set of guidelines, best practices, programming styles and conventions that developers follow when writing source code for a project. (University of St Andrews, n.d) My coding standards are:  Line length should not exceed 200 characters.  Class must be clear and easy to be read.  Class name should not end with -er. Coding standards are vital as it ensures the safety, reliability, and security of a project.

Reference List

Amazon (n.d). What Is An Ide? Amazon [online]. Available from: https://aws.amazon.com/what- is/ide/. [Accessed 27th^ January 2023] Amazon (n.d). What is Debugging? Amazon [online]. Available from: https://aws.amazon.com/what-is/debugging/. [Accessed 27th^ January 2023] Bhadwal, A (2022). Procedural Programming: Definition, Benefits, Comparison With Other Paradigms. TechStrot [online]. Available from: https://www.techstrot.com/procedural- programming/. [Accessed 27th^ January 2023] Deepsource (n.d). Procedular Programming. Deepsource [online]. Available from: https://deepsource.io/glossary/procedural-programming/. [Accessed 27th^ January 2023] Gartner (n.d). Object-oriented programming. Gartner [online]. Available from: https://www.gartner.com/en/information-technology/glossary/oop-object-oriented- programming. [Accessed 27th^ January 2023]