logo

(PDF) Creating Your Own Programs

23 Pages8028 Words191 Views
   

Added on  2022-01-20

(PDF) Creating Your Own Programs

   Added on 2022-01-20

ShareRelated Documents
Report on Creation of Program
During programming and in programming terms, algorithms are commonly used in
the building of coding applications and defined in programming and overall are an
essential part/component which is used in programming. Algorithms are typically
defined as the rules involved in the process of, or it could also be classed as the
step-by-step instructions, which is used by the computer and would be followed
when they are running the program or when computer code is being wrote down and
used in the design stage of making programs. Algorithms firstly are to be followed as
step-by-step instructions (which they are known in coding terms as ‘procedures’)
which work by following the process which occurs, firstly it would start by having an
input into the program then the procedure occurs when the code uses a method to
try and output the result, ending in the final output occurring at the end of the
algorithm. Algorithms are commonly used to maintain or view the flow of the program
and to show how the overall program would work and to show each step which
would occur when the program is running and working from the start to finish until
the program is closed. Like previously mentoined algorithms can also be used in the
designing of programs/applications because they allow users to have a guide on how
they would want their overall program to work because algorithms are formulated in
the step-by-step format which allow them to be followed and it would give a
breakdown on the overall process involved.
Algorithms which get created are not to be used as computer code itself, it is mainly
used to show the overall procedure which is what the program will be based on and
to show the breakdown of what would be the computer code running be like and how
it would perform because it would show the process of working by going down each
step. The steps which would also be wrote in clear English instead of in coding
language because it makes the algorithms easy to read in the step by step process
and then that process can be incorporated into the program which is going to be
created. Depending on how big the overall program is which is being created would
overall depend on how big the algorithm is – for example if the program which is
being created has multiple processes which would occur in the program (such as
multiple outcomes) the overall algorithm would be longer and have more steps
included in it.
During the building of my program and creating/building code in general, multiple
different processes are conducted to create the eventual code which is what any
program would run based on. For designing and trying to implement code the
different processes involved to building an application would have different outcomes
in designing of my program. The different processes involved creating an algorithm,
creation of pseudocode and a flow chart diagram being create each diagram which
was used can have different inputs in the eventual designing of my program. An
algorithm is used, like previously mentoined, to show the steps/actions which are
involved in my program from start to finish , I created and used pseudocode as the
informal way of my programs’ description. When making pseudocode it does not
require any programming language to be involved in the process – it instead is used
to summarise the programs procedure but underlines any details which would occur
in the code. Finally I used the design of a flow chart to show the overall process of
my program, this would show the entire process of my code when its running.
(PDF) Creating Your Own Programs_1
Algorithm
Step 1 : Program Start
Step 2 : User credentials are inputted
Step 3 : Depending on any user credentials missing determines whether log in is available
Step 4 : Log in button is clicked
Step 5 : Depending whether log in credentials are correct user logs into system or gets denied
A creation of the algorithm is to show the step by step process involved in my program, like
every other algorithm which get created the program which gets created based on the
algorithm will follow the simple steps which are stated in the algorithm because they are the
rules which have to be followed each time the program is ran and used. Overall this is a
useful step and design of an algorithm to benefit me, which was used in the creation of my
program because it would show the basic steps which would feature in my program and also
overall the steps which would be defined in my program, because these five steps which
feature in the algorithm act as ‘rules’ (which overall is what an algorithm is). Algorithms
overall act as the backbone of any computer program because like previously mentoined it is
the process the computer would take every time the program is ran. I used the algorithm
which I created as well because it is important for me (when starting to create my program)
to know the main steps/rules which would be involved in the overall process – because if my
program didn’t feature any of these steps it would affect the whole program I am planning to
make. Each step which would occur in the algorithm is what the computer would do when
the program is being used.
Pseudocode
Program Start
Insert username (first credential) variable and hold variable
(if log in button is clicked) remaining credentials not entered have to be entered
Insert ID number (second credential) and hold variable
(if log in button is clicked) remaining credentials not entered have to be entered
Insert password (third credential) and hold variable
(if log in button is clicked) remaining credentials not entered have to be entered
Click log in button
(End if) the credentials entered match credentials of already stored variables
else
credentials have to be re-entered to match credentials
Due to pseudocode not being an actual coding language, nor can it be complied with an
executable program because it uses the standard English language and it uses short terms
to write program language which can then be converted into the coding language which is
understood and can be used by the user and the platform they want to code on. I overall
created pseudocode because it is the main reason why pseudocode is commonly made by
users before starting to make any programs/applications , because the use of pseudocode
allows (and would allow me) to plan out the method of my program which I am planning to
create and also to show off the method (in standard English form) to see how my program
would perform and be executed when the actual code is being created. This pseudocode
was created to show the overall code in the standard English language and then allow me to
plan the code I need to make my program and see what I would need in my program (as
clearly stated it would need if statements and to be able to hold variables and have them
stored when other variables, which would be user credentials, are being inserted into the
program). It also allows for any issues which could end up occurring to be outlined before
the creation of the program , so when the overall process does starts it allows for the
minimalist of errors or issues to occur within the code because I am following the method
given to me by the creation of pseudocode.
(PDF) Creating Your Own Programs_2
Another step which would occur in the process , and one of the last processes I engaged
with, is the creation of a flow chart. A flow chart is the basic diagram and process which is
involved when my program is running. The flow chart basically shows the overall program
and each step which is involved in the program when it is running and each time it is used it
will follow the same direction – and because flowchart can have other options branching off it
, it is used also to show the other processes which would occur (such as in this scenario if
Access is denied in the system because the user has inputted a wrong detail or if one of the
credentials which have been inputted is wrong). Flow charts are overall important and
beneficial because during the process of making it and also during the process of making my
program , it would be a corner stone and like the pseudocode would compare to when I
needed to see the overall features which would feature in my code because it would allow
me to see each essential steps (and occurrences which could occur) which would feature in
my program and it would also make sure these essential steps are featured in my final
program.
Using all these methods can assist me in the creation of the overall program I want to create
– when creating the overall program/application there are multiple steps which is featured in
this process, and which would occur – the overall process of the creation of a program would
be the identification of what the program is which wanted to be created (such as the
requirements and specification which is included in the program). Then after this has been
decided the next steps then would be identifying a solution, designing it and then eventually
that would lead up coding the overall program which is being created and designed in the
previous stages, these steps are important because without any designs trying to create a
program without any material is hard to do. Finally one of the last stages in the process
would then the program has been created it can be checked to see if it overall works as what
was planned in the previous stages during the designing of it and can have no errors in it,
even though errors would be managed in the creation of the program it would also be
important to test it once it is finally completed to see if it works properly.
(PDF) Creating Your Own Programs_3
Procedural programming is a programming paradigm which involves the process of
executing each task in an efficient process which involves each task being marked in a
sequential order which has to complete that task set in that order meaning the process
during procedural programming involves the execution of each line of code in the order they
are in. For example the process would be if there are 4 tasks (for an example) the program
will complete the tasks in order of task 1 at first then task 2 and then task 3 and finally task 4.
When using procedural programming it cannot just jump from task 1 to task 4 directly, unlike
object orientated programming which allows data just to be used immediately without having
to follow any steps. An example of procedural programming techniques would be the use of
loops in a program because the use of loops which would allow a sequence to occur and
loops would have to go through the entire process. This can be changed though by the
choice of the user by including iteration. The types of languages which feature procedural
programming are C, FORTAN or Pascal, which are unknown languages and less commonly
used and harder to code on. Some of the key characteristics which feature in procedural
programming are that when using procedural programming it uses blocks of codes classified
as functions which can only perform the specific tasks which , unlike object-oriented
programming again which uses data and models and can be more expressive and freely
used, procedural programming focuses also focuses on the sequences of actions which
occur and are programmed based on procedures which could occur and each procedure is a
sequence of statements which has a defined purpose in the code.
In object-oriented programming (or it can also be classed as OOP) is a programming
paradigm which uses objects during the programming process instead of simple functions,
like procedural programming. Object Oriented programming it is often used to structure
whatever is being programmed into simple code which can be read. An example of object
oriented programming which would occur would be text boxes which could be used in the
program to produce text which would occur on the program, or any use of any other objects
which can be used or interacted with. The overall language which can be used is the core
ingredient which is included in all .NET frameworks and the types of programming languages
which feature Object-Oriented Programming are C++, Python, C# and especially Java, this
is because when creating programs they are centred on creating objects, manipulating
objects and making the objects work together and is often the most common language to
use and create programs with and would allow users to implement object oriented models.
Object oriented programming is highly more suggested to be used by Microsoft than the
other two coding paradigms, this because the coding paradigm is used on C# which is a
Microsoft designed application. Some of the key features of OOP is that it allows for simple
things in coding to be represented in a more complex variety (such as objects, classes and
variables which would be used), it also allows the use of Polymorphism which can allow for
words used in the code to have different meanings, an example of this would be strings
which can be used in the program, this however is unlike object orientated and event driven
because they are strict with what words can clarify for certain meanings as data and can
allow certain words meaning one specific type.
Event-driven programming (this can also be classed as EDP) is a programming paradigm
which can be used in both procedural programming and object oriented programming
techniques (or it can be classed as its own paradigm) and can also be used as its own
programming paradigm. Event-driven programming works as if something happens is
determined by the input into the program, which is known such as the events which occur in
the program. For example this would be the input in keys being pressed or mouse clicks or
clicking buttons on the program which has been made usen event driven processes. The
types of programming language which would feature Event Driven Programming are Visual
Basic, Visual C++ and Java. When using Event Driven Programming it is being used as
‘architectutral software’ which overall means EDP can be used to implement different
frameworks and work with different frameworks (such as GUI’s) however Object Orientated
is just a coding paradigm. Some of the key features when using Event Driven Programming
(PDF) Creating Your Own Programs_4
is that when using it are the language can be used to create programs for services and does
not end up slowing down your computer, as well as other characteristics include features it
uses trigger functions and events which overall mean the program which has been created
using the language would only perform when the event occurs because of the trigger, unlike
the other two coding languages which constantly require an input when being used.
When comparing and contrasting each individual programming paradigm which can be used,
they overall each have different features and contrast to each other in numerous ways and
both have different features. Some of the main differences between all the languages are
that each language focus on different executions of programs being created, this can be
shown because when using procedural programming it rather focuses on the sequential
execution of steps which occur in order during the program, when Object Oriented
programming focuses strictly on objects and data which can be implemented into the
program and Event Driven programs feature just strictly user interfaces. Another difference
between all the languages are that when using the programs to execute actions Procedural
Programming commands are written in linear fashion, this overall means it includes little
detail about what features and also executed in linear fashion however the other two actions
are more in depth but both perform in different ways; such as Object Oriented are just written
to perform a specific task which would be included in the program when Event Driven
actions which could occur are just defined by the events which could occur which could only
occur because of the user using the program, this would also overall affect the difficulty
which could be met when writing code using each coding paradigm because if it offers less
detail and code would have to be typed in more detail to represent data and it would overall
a more in depth coding knowledge and make coding more robust.
Included in my code are examples of
procedural programming – this is one of the
key examples of procedural programming in
my program. In my program this clearly
shows a process of a loop which has to go
through each step to determine the
outcome. In the context of the program is if
the user is missing inputted credentials, one
of these messages would occur. The use of
procedural programming is it allows the
process of going through each option first
before seeing whether the user credentials
which have been included in the log in
system are correct or not.
(PDF) Creating Your Own Programs_5
Included in my code is an example of event driven programming , this overall would allow
me to use event driven programming functions (such as inputs, triggers and events). This is
because data which is going to be inputted into my code after (included in the picture above)
would be determined because of the events which could end up occurring in the program –
for example the user credentials which are inputted.
In my code is an example
of object oriented
programming. This is object
orientated because of the
use of text data which
feature in the code. The
feature of text is all the user
credentials which would
feature in the program –
included are the names, ID
numbers and the
passwords which feature
for every user.
(PDF) Creating Your Own Programs_6

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Assignment on Algorithm PDF
|11
|1949
|86

Lecture on Problem Solving & Flowcharts
|36
|1691
|24

Managing Complexity in a Coffee Industry
|13
|2255
|23

Introduction to Operation Research Software Report 2022
|4
|929
|22

Building Systems Assignment PDF
|11
|3260
|77

The best flowchart software
|7
|771
|30