Professional Documents
Culture Documents
PG Report by Swam Pyae Maung Maung
PG Report by Swam Pyae Maung Maung
Student ID – MG16573
1
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
Contents
Task – 1 ......................................................................................................................................................... 3
(1.1) What is an algorithm? ...................................................................................................................... 3
(1.2) Characteristics and features of an algorithm ................................................................................... 5
(1.3) Flowchart Diagram ........................................................................................................................... 6
Task – 2 ......................................................................................................................................................... 9
(2.1) What are the programming paradigms? .......................................................................................... 9
(2.2) Procedural programming paradigm ............................................................................................... 10
(2.3) Object Oriented Programming ....................................................................................................... 12
(2.4) Event-Driven Programming ............................................................................................................ 12
(2.5) Comparison of procedural .............................................................................................................. 14
Task – 4 ....................................................................................................................................................... 15
(4.1) What is debugging process? ........................................................................................................... 15
(4.1.1) Common features of IDE (IntelliJ IDEA) ....................................................................................... 15
(4.1.1) Debugging facilities available in IDE ............................................................................................ 16
(4.1.2) Breakpoint ................................................................................................................................... 16
(4.2) Outline the coding standards I have used in my code ................................................................... 19
References .................................................................................................................................................. 23
2
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
Task – 1
(1.1) What is an algorithm?
3
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
There is an initial input which are the set of rules and commands which
are the specific data and the output will execute from the given input. Even
though there will be any other types of programming language, the output will
always be the same at the end so, an algorithm is called language independent
and can be used in many languages as Java, Python, C# and so on.
4
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
1. Input specified
2. Output specified
3. Definiteness
4. Effectiveness
5. Finiteness
6. Independent
1.Input specified
During the computation, which the input is the data to be transformed
to produce the output and should have 0 or more well defined inputs with each
step which is a purely local property. Each step of the algorithm must be
explicit. Precision of input requires what kind of data you know, how much
and what form the data should be.
5
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
2.Output specified
An algorithm has one or more outputs which have specified output to
the input quantities. It is the data resulting from the input which is plan to
make output.
3.Definiteness
In the process, an algorithm must be specified every step and the steps
must be taken in order to process. Definiteness means showing the array of
operations which will turn input into definitely output. Algorithm should be
clean, easy to read and unambiguous for others programmers when they look
at your codes. Each of the step should be also spelled out which mean must
need instructions how to handle errors.
4.Effectiveness
To get to the output should be feasible with the available resources for
an algorithm to be effective, which means all those steps are required. Any
unnecessary and redundant steps shouldn’t contain which could make an
algorithm ineffective.
5.Finitness
Algorithms must terminate after a finite number of steps which means
you get the expected output or you get a response which solution is
impossible. This can’t be infinite and need to terminate after definite number
of steps. In developing an algorithm, there is no sense which is infinite as it
will be useless.
6.Independent
For any programming code, an algorithm should be independent and
should have step-by-step directions. It can be run on any types of the
programming languages. Hence, these are the characteristics that an
algorithm should have for its beneficial.
6
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
Main () method
Input () method
7
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
displayAllInfo () method
searchName () method
8
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
searchId () method
Task – 2
(2.1) What are the programming paradigms?
9
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
10
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
11
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
12
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
As there are so many key features among them, service oriented is one
of the key features in event-driven programming which takes just a bit of
computer processing power so it doesn’t slow down the power. Hence,
computer can run faster. Services running in background of your OS and those
services make your system user more friendly. As an example of this oriented
is that when you insert a USB drive or wireless mouse USB flash drive is run
by the operating system to install the needing drivers to use with the
computer.
Visual Basic, C# and Java are such an example language which are
especially designed to be efficient for this programming but any programming
languages can be written in this program and is not precisely tell which
languages have to be used.
Advantages of Event-Driven programming
• Flexibility
• Simple and easy to understand
• Suitable and reliable for graphic creator
• Highly compostable
• More efficient to find natural dividing lines
13
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
14
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
Task – 4
(4.1) What is debugging process?
Debugging which is a multistep process that involves describing a
problem, dividing the source of the problem, and then making the problem
correct or determining a way to work around programming and engineering.
The final step of debugging is to test the correction to make sure it works.
(4.1.1) Common features of IDE (IntelliJ IDEA)
IntelliJ IDEA, known as one of the Java IDE, which is smarter than
eclipse and also the smartest IDE and which is not covered. Microsoft bought
a license for ReSharper and many users and employees are using it.
ReSharper, which is made by JetBrains, visual studio is also regarded as God
for many employees and users of Microsoft users.
15
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
16
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
17
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
Before set points of debugging, you need to input data and before
reaching your debug sets of points, it will show like this.
After that, you can expand to see what data are in there by clicking
arrow button and it will show all data that what type of value, coder and so
on. Also, the information is also displayed for you up here within your source
code. The power of the debugger is in controlling the step by step execution
of the program.
18
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
19
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
Then, I will use String input () Method with looping and variables are shown
upon.
In this displayAllInfo () method, I will use println with “for” method to call
above String types to show all information that we entered.
20
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
21
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
Also like this method, it’s same as searchID () method but not like search by
name, this method can search with ID and all the information will come down
related to that ID.
So, this is the last coding method I used to get output in very simple way by
calling int from above methods.
22
HND-42 GUSTO UNIVERSITY Swam Pyae Maung Maung
References
-https://www.simplilearn.com/tutorials/data-structure-tutorial/what-is-an-
algorithm
-https://theconversation.com/what-is-an-algorithm-how-computers-know-
what-to-do-with-data-146665
-https://tutorialink.com/ds/key-features-of-an-algorithm.ds
-https://medium.com/@bhattshlok12/characteristics-of-an-algorithm-
49cf4d7bcd9
-https://www.quora.com/How-do-you-prove-that-an-algorithm-is-well-
defined
-https://bisma.in/algorithm-and-its-characteristics/
-https://www.geeksforgeeks.org/introduction-of-programming-paradigms/
-https://levelup.gitconnected.com/functional-object-oriented-procedural-
programming-644feda5bcfc
-https://www.aplustopper.com/advantages-and-disadvantages-of-oop/
-https://www.technologyuk.net/computing/software-development/software-
design/event-driven-programming.shtml
-https://benchpartner.com/advantages-and-disadvantages-of-event-driven-
programming
-
https://www.techtarget.com/searchsoftwarequality/definition/debugging#:~
:text=Debugging%2C%20in%20computer%20programming%20and,and%2
0make%20sure%20it%20works.
23