Software Development Report: Algorithms, OOP, and IDEs

Verified

Added on  2025/05/03

|13
|2994
|124
AI Summary
Desklib provides solved assignments and past papers to help students succeed.
Document Page
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Contents
Introduction......................................................................................................................................2
LO1..................................................................................................................................................3
P1.................................................................................................................................................3
M1................................................................................................................................................4
LO2..................................................................................................................................................4
P2.................................................................................................................................................4
M2................................................................................................................................................5
LO3..................................................................................................................................................6
P3.................................................................................................................................................6
M3................................................................................................................................................7
LO4..................................................................................................................................................7
P4.................................................................................................................................................7
References......................................................................................................................................10
Document Page
Introduction
This file would contain four parts and these for part have subparts in it. In the first part
algorithms and operation would be mentioned, the definition of the algorithm are an outline and
detailed study would be made on algorithms. Then the steps taken to carry out the code to
execution would be mentioned. In the second part event handler, object-oriented programming,
and procedural are to be explained. The key features of the IDE and detailed study would be
explained. In the third part, the algorithm which was would be written above is going to be used
in this part and the code is would be created according to it. Then in the next phase development,
IDE is to be explained. In the fourth part debugging process will be explained which are present
in IDE, in this same part coding standards are mentioned and evaluation is done on debugging.
Document Page
LO1
P1
The algorithm is the basic structure which is used for problem-solving. The basic definition of an
algorithm is that helps to build the code in steps, the steps are theory part and the implementation
of the algorithm turns into code. The machine can’t understand the algorithm so it has to be
written into the language which the machine can understand. These are mainly used in the IT
sector, there are various steps followed to create an effective algorithm. The problem is to be
analyzed before starting the work so that all the points are cleared and the algorithm which is
going to be designed can fulfill the requirements of the problem and the algorithm should cover
all the areas of the problem. In the next step, the flow of code is to be created and the code would
be made according to it. There is a deep study made which follows the rules and regulation to
solve the problem. There are conditions mentioned in the algorithm and all the flow of variables,
conditions to mold the code and at what condition would the code ends is
explained(Davendra,2016).
A good algorithm contains the following steps:
Output and input of the code are explained clearly.
There are various steps mentioned which are accurate to the point.
The algorithm should be short and save space.
The algorithm isn't coded, they are statements similar to code.
For example:
Initiate
Assign variables z, x, & y
Assign values to z, x, & y
If z > x
If z > c
Show largest number z
Else
Show largest number y
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Else
Else
If x > y
Show largest number x
Else
Show largest number y
Exit
M1
The steps taken to execute the code are:
In the starting, there is a base salary (per annum) are initialized which is 32000 and this is
a float value means this can store values of points also in it.
In the next step base salary (per annum) is divided by 12.
In the next step, a function is created which is initialized by def as this is the predefined
keyword in python, by writing def the machine understands that the function is going to
be created. After writing the keyword the next part is the name which is given by the
developer, in this code the name is commission calculator which has an argument passed
into it by the name amount.
In the next step, there is condition mention so that the code can run according to the
conditions enter by the user. ‘If’ and if are used so that when the condition is fulfilled in
‘If’ statement then the code would skip all the other condition written within elif part and
the pointer would come out from this loop, when condition of ‘if’ aren’t matched then the
code would find the condition in the elif part. Every ‘if’ and elif condition has a return
type value which is returned when the code matches the algorithm.
In the next step, there is a while loop which is present so that if the user enters the value
which isn’t going to satisfied the condition then the code would run again and ask the
user the value again and again until the correct value is entered.
There is a variable created so that the value entered by the user can be stored.
There is a break statement written after the print statement because if the user chooses to
exit then the program could be terminated.
Document Page
If the user enters the value then the system would store the value until 2 decimal and
process accordingly(Sawant, 2018).
LO2
P2
Procedural programming which is created on the procedures concepts, these are the combination
of the commands which are executed and its main features are that the code can be reused and
maintained easily. The characters of this are that global data is shared by functions, the main
focus of this is on functions, this uses top-down approach for processing, and the length of the
code is split into smaller functions to make code simpler. In this, every statement has its own
unique value which is processed and the function can share the data globally.
The object-oriented program refers to the functions which were created are used in the main
function or other functions; this brings the functionality of the function to another function. The
instances in this are objects, these are transferred to another function and gain new values
according to the requirements of the program. The characteristics of this are abstraction which is
used to hide unnecessary data for user means this doesn’t show the code to the user as user is
only concerned about entering the values mentioned, encapsulation means that the entire code is
encapsulated into one this cause the same things to combine into one unit, polymorphism means
the variable can acquire more than one form.
Event-driven programming is used in developing phase means all the front end processing shown
is actually the code written in the backend which performs the task such as button clicking,
taking input in the text box, etc. All the event occurred are handled by the event handler. The
characteristics of this are that it is time driven means there is a time constraint to execute the
code, trigger means that all the event taking place are handled in this part.
Procedural language focuses on procedures whereas object-oriented language focus on methods
and event-driven language focus on the user’s selection.
Document Page
M2
This is the software or platform which is used to create and run the code, in this complete testing,
compiling the code is performed. This makes the work of the developer less hectic as all the
errors are displayed and some IDEs show the solution by which the code is showing errors.
There are specific IDEs made for particular language so they won’t work if you are using other
language but there are some IDEs which can work for most of the language. These type of IDEs
aren’t successful as they are designed for most of the languages so all the part won’t be covered.
There are options present in the IDEs which helps in debugging code and detect the errors
present in the code. This phase comes in testing as until the code is tested properly it won’t run.
This happens because of some mistakes made in the code which the machine could not
understand(Islam, 2016).
The next phase is of compiling the code, in this when the code is tested and debugged
successfully then the complication part occurs, in this, the code is converted into machine
language so that the machine can understand. The machine can only understand binary numbers
so the code is converted accordingly.
IDEs also provide the platform on which the code can be written and edited, these are open
source software means they are available for free in the market. There are regular updates made
to the IDEs which enhances the product and is up to date according to requirements of the
market. Every programming language needs a platform to write and execute the code, this acts as
a medium between code and machine (Bates, 2017).
LO3
P3
Base_salary_per_annum = 32000.00
Base_monthly_salary = Base_salary_per_annum / 12
def commision_calculator( amount ) :
if( amount > 0.00 and amount < 500.0 ) :
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
return Base_monthly_salary
elif( amount > 500.01 and amount < 2000.00 ) :
return (Base_monthly_salary + ( amount * 5 ) / 100 )
elif( amount > 2000.01 and amount < 5000.00) :
return (Base_monthly_salary + ( amount * 9 ) / 100 )
elif( amount > 5000.01 and amount < 10000.00) :
return (Base_monthly_salary + ( amount * 13 ) / 100 )
else:
return (Base_monthly_salary + ( amount * 13 ) / 100 )
while True:
userinput = input( ' Enter the amount of sale \t : ' )
if( userinput == ' exit ' ) :
print( ' \n Thank you ' )
break
else:
try:
print( " { : 0.2f } " .format( commision_calculator( float ( userinput ) ) ) )
except:
print(" \n \n Please Enter valid Value /n Enter exit ( ' exit is case sensitive ' ) " )
Document Page
M3
IDE is software which contains all the things at one place which the developer needs. This is a
platform which works on a single click, the developer only needs to write the code and all the
other things are managed by the IDE, for example, the developer just needs to click on compile
code and the code would automatically convert into binary digits which the machine would
understand. There are various small features to make the code reading easier as there are
different colors used to make different keywords stand out. The developer can easily understand
the function, parameters, and errors by seeing the code. The IDE improves the speed or enhances
the speed of the program as they contain the code completion feature. The main feature as we
know is to convert the program code to machine code. There are options present in the IDEs
which helps in debugging code and detect the errors present in the code. This phase comes in
testing as until the code is tested properly it won’t run. This happens because of some mistakes
made in the code which the machine could not understand. IDEs also provide the platform on
which the code can be written and edited, these are open source software means they are
available for free in the market. There are regular updates made to the IDEs which enhances the
product and is up to date according to requirements of the market. Every programming language
needs a platform to write and execute the code, these acts as a medium between code and
machine. There is option present to write the code of any language in particular IDE and then
also it would execute the code, only the syntax is change and the IDE are already integrated for
processing other languages. Some IDE provides the option to convert the code written in one
language to another language by itself, so the user or developer doesn’t have to change the code
himself/ herself (Petrillo, 2019).
LO4
P4
This is the software or platform which is used to create and run the code, in this complete testing,
compiling the code is performed. This makes the work of the developer less hectic as all the
errors are displayed and some IDEs show the solution by which the code is showing errors.
There are specific IDEs made for particular language so they won’t work if you are using other
language but there are some IDEs which can work for most of the language. These type of IDEs
Document Page
aren’t successful as they are designed for most of the languages so all the part won’t be covered.
There are options present in the IDEs which helps in debugging code and detect the errors
present in the code. This phase comes in testing as until the code is tested properly it won’t run.
This happens because of some mistakes made in the code which the machine could not
understand. The processes which are to be followed are:
Finding the bug is the initial step as if in the initial there are errors present then there
would be changes to be made in the entire code. So it is beneficial to analyze the bug.
The bug is detected in the top-down approach as the code would be running form the
beginning, different IDE has different methods for example in python the code is
analyzed line to line and in Java, the entire code is analyzed and then the errors are
shown.
The debugger tool is beneficial as it uses graphics which makes the code interactive and simpler
to understand, it saves the time for execution debugger would show at which line of code the
errors are present which are to be solved in order to run the code.
P5
Coding standards used in this code are as following:
There aren’t any arguments present in the starting of code and for indentation default or
preferred are four spaces, in this tab is used as this provides four spaces.
In this cod, the lines aren’t exceeding 72 characters, and indentation is done correctly as
in python brackets aren’t used and indentation pattern is followed.
There aren’t any blank lines used in the code which save the space and makes it less
complex
There aren’t any imports included as this isn’t any need to inherit modules to run the
code.
Only ASCII or UTF-8 is used for encoding.
The code can be written in multiple lines and the variable names are the same and it helps
to navigate the value to different arguments.
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Lower case letters are used as python is case sensitive language, so if the code is written
in uppercase letters than there would be error shown and in this code, it is avoided.
In this code, there are single quotes and double quotes used as these both perform the
same action.
To add comments in the file # are used as this has the power to neglect whatever is
written after # in a single line.
M4
For writing code, the user needs to begin with an error and fix it. A developer of a
program should have skills to repair the problem and analysis is predicted. Once the bug
is fastened, then the code is prepared to use. Debugging tools area unit accustomed
to establish committal to writing errors at numerous development stages. They’re
accustomed reproduce the conditions within which error has occurred, and then examine the
code state at that point and find the cause. There are options present in the IDEs which helps in
debugging code and detect the errors present in the code. This phase comes in testing as until the
code is tested properly it won’t run. The debugger tool is beneficial as it uses graphics which
makes the code interactive and simpler to understand, it saves the time for execution debugger
would show at which line of code the errors are present which are to be solved in order to run the
code This happens because of some mistakes made in the code which the machine could not
understand. Programmers will trace the code execution stepwise by evaluating the worth of
variables & pause the execution was needed to urge the worth of variables or else reset the
code variables. Some programing language packages give a computer code for checking the
program for errors whereas it's being changed at run-time. The ideal progress to follow the
figure stepwise is ranging from analyzing, identification breakdown & validates the script
& makes sure that the software or application isn’t dead. The debugging is to be effective to
form develop a safer & sturdy application. The bug is detected in the top-down approach as the
code would be running form the beginning, different IDE has different methods for example in
python the code is analyzed line to line and inJava the entire code is analyzed and then the errors
are shown. The bugs are permanently fixed so that they don’t disturb in the future (Belegundu,
2019).
Document Page
Conclusion
In this file there are algorithms and operation mentioned, the definition of the algorithm is an
outline and detailed study was made on algorithms and a report was made on it. Then the steps
taken to carry out the code to execution are mentioned. In the second part event handler, object-
oriented programming, and procedural are explained. The key features of the IDE and detailed
study are written. In the third part, the algorithm which was written above is used and the code is
created according to it. Then in the next phase development, IDE is explained. In the fourth part
debugging process are explained which are present in IDE, in this same part coding standards are
mentioned and evaluation is done on debugging.
chevron_up_icon
1 out of 13
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]