0% found this document useful (0 votes)
99 views16 pages

Assignment Template

This document discusses the development of a grade point average calculator application using Python in an integrated development environment (IDE). It covers algorithm design, programming paradigms, debugging errors, coding standards, and conclusions. The algorithm and pseudocode for calculating GPA is presented. Screenshots show the IDE, source code for the application, and debugging errors. Programming paradigms like procedural, object-oriented, and event-driven are defined. The importance of coding standards, debugging, and future improvements are discussed. In conclusion, the author reflects on what was learned from extensively developing the GPA calculator application in Python using an IDE.

Uploaded by

shubham
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
99 views16 pages

Assignment Template

This document discusses the development of a grade point average calculator application using Python in an integrated development environment (IDE). It covers algorithm design, programming paradigms, debugging errors, coding standards, and conclusions. The algorithm and pseudocode for calculating GPA is presented. Screenshots show the IDE, source code for the application, and debugging errors. Programming paradigms like procedural, object-oriented, and event-driven are defined. The importance of coding standards, debugging, and future improvements are discussed. In conclusion, the author reflects on what was learned from extensively developing the GPA calculator application in Python using an IDE.

Uploaded by

shubham
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 16

COVERPAGE

Table of Contents
Introduction...........................................................................................................................................3
Algorithm...............................................................................................................................................4
Algorithm Steps/Steps for Program Implementation........................................................................4
Pseudocode.......................................................................................................................................5
Algorithm Comparison.......................................................................................................................6
Programming Paradigms (Procedural, Object, Event Driven)................................................................6
Procedural Programming Paradigms.................................................................................................6
Object Oriented Programming Paradigms (Characteristics of OOP: Abstraction, Inheritance,
Polymorphism etc).............................................................................................................................7
Event Driven Programming Paradigms..............................................................................................7
Integrated Development Environments (IDEs)......................................................................................7
Program Development/ Grade Point Average Calculator......................................................................7
Source Code.......................................................................................................................................7
IDE vs non-IDE/ Integrated Development Environment and non- Integrated Development
Environment..........................................................................................................................................8
Debugging the Program (5 errors and how you were able to solve them)............................................8
Coding Standards.................................................................................................................................11
Importance of Debugging (5 importance and discuss)........................................................................11
Future Recommendations/ Improvements (5)....................................................................................11
Importance of Coding Standards in an Organization...........................................................................11
Conclusion...........................................................................................................................................12
References...........................................................................................................................................13
Appendix.............................................................................................................................................14
Introduction
Change the scenario in your own words and discuss what you are trying to do.

Example: In this assignment, the application will be developed using an Integrated Development
Environment (IDE). The IDE chosen is IDLE/PyCharm/Atom. The programming language to
implement this is Python.

Python is one of the higher level language ……………………………………………………….


Algorithm
An algorithm is a description of how a specific problem should be solved. In order to be executed by
computers, algorithms need to be in the form of a ‘program’. A program is written in a programming
language, and the activity of expressing an algorithm as a program is called programming.

In algorithms, steps are expressed in the form of an instruction or statement. As a consequence, a


computer program comprises a series of statements which indicate to the computer which
operation to perform [ CITATION MAR18 \l 2057 ].

The programming language used will dictate the nature of the statements in a program. To use a
computer for the purpose of executing processes, it is necessary to:

 design the algorithm to describe how the process will be performed;  use a programming
language to express the algorithm into a program;  run the program on the computer.[ CITATION
MAR18 \l 2057 ]

To this end, it is important to understand that algorithms are independent of the programming
language used and each algorithm can be expressed in different programming languages and
executed on different computers. This is the reason why the design of algorithms is a fundamental
aspect of computer science. The design of an algorithm is a demanding intellectual activity,
significantly more difficult than expressing the algorithm as a program. [ CITATION MAR18 \l 2057 ]

Among the skills needed to design algorithms are creativity and insight [ CITATION Gol88 \l 2057 ]
while there is no general rule, meaning there is no algorithm for algorithm design!

[ CITATION Les88 \l 2057 ]

Algorithm Steps/Steps for Program Implementation


The following are the steps needed to execute the program:

Step 1: Greet User

Step 2: Ask for Marks

Step 3:

Last Step:
Pseudocode
Input: Subject and Marks

Output: Grade and Grade Point Average

BEGIN

Print (“Greetings”)

Input(“Ask for Subject/ Marks”)

Do WHILE

IF

THEN

ELSEIF
THEN

ELSEIF

THEN

..

END IF

END WHILE

END
Algorithm Comparison
The algorithm to be compared is as follows:

Step1: Set Dollar Price

Step 2: Calculated the Pound Price

Step 3: Print the Result.

The Pseudocode is as follows

Compute the price of the item in dollars

Input: Price in pounds

Output: Price in dollars

BEGIN Set DollarPrice = (3 /2) * PoundPrice Print DollarPrice

END

Algorithm Comparison/Similarities Differences


Application 1. Both are programming languages 1. Application Algorithm
Algorithm 2. They both involve calculation needs a loop while the
3. 6666 sample algorithm does
4. 6666 not need a loop
5. 6666 2. Application Algorithm
Sample involves the use of IF
Algorithm THEN
Statements/Structure
Statement/
Conditional
Statements
3. 6666
4. 6666
5. 6666
Table 1.0: Comparison and Differences of Two Algorithms

Programming Paradigms (Procedural, Object, Event


Driven)
Define programming paradigms

Procedural Programming Paradigms


(Discuss with a screenshot of a program in Procedural PP)

https://www.sas.upenn.edu/~jesusfv/Lecture_HPC_7_Programming_Paradigms.pdf
Object Oriented Programming Paradigms (Characteristics of OOP:
Abstraction, Inheritance, Polymorphism etc)
(Discuss with a screenshot of a program in Object Oriented Programming Paradigms)

Event Driven Programming Paradigms


(Characteristics of Event Driven Programming Paradigm)

(Discuss with a screenshot of a program in Event Driven Programming Paradigm)

Integrated Development Environments (IDEs)


Define what it is

Explain the type of IDE you are using + suitable screenshots

Program Development/ Grade Point Average Calculator


Discuss what Object Oriented Programming is and how python can be used in developing the
application (min 2 paragraphs max 5)

Source Code
The source code of the application is as below:

Label

The Output of the Application


Label

IDE vs non-IDE/ Integrated Development Environment


and non- Integrated Development Environment
Differences between IDE and NON-IDE (minimum of five)

1. It is easy to spot errors in an IDE; however in non-IDE it is difficult

Debugging the Program (5 errors and how you were


able to solve them)
1. Not using the column when illustrating ‘Try’

Label

In this error, the program was checked and I realize there is no ‘:’ after the try statement.
This was corrected and the program functioned well.
2. Indentation Error

Label

The error message popped up when the program was implemented, went through the
source code and realized I have not done the right indentation on line 3 and line 4. I
corrected these and they work well

Debugging Facilities in IDLE


1. Ability to give error message
2. Ability to give line specific error message
3. The debugging tool

After all debugging, the application worked well. Evidence is as follow:


Coding Standards
Define coding standards (1 paragraph 2 max)

The following are the standards incorporated in writing the application (5 and discuss them)

1. I made sure there are enough comments


2. I made sure I have caught any exceptions
3. I made sure there are white spaces

Importance of Debugging (5 importance and discuss)


……..

………

……….

Future Recommendations/ Improvements (5)


……

…..

…..

Importance of Coding Standards in an Organization


……

….

….
Conclusion
Discuss you have done extensively

Tell me what you have learnt

(min 2; max 5 paragraphs)


References
Liste, G. a., 1988. Computer Science; An Introduction. 2nd ed. s.l.:s.n.

Liste, L. G. a., 1988. Barraca. [Online]


Available at: http://vi.raptor.ebaydesc.com/ws/eBayISAPI.dll?
ViewItemDescV4&item=254169101577&category=171243&pm=1&ds=0&t=1574183319141
[Accessed 19 November 2019].

MARIA CHRISTODOULOU, E. S. ,. K. K., 2018. Algorithmic and Programming. Krosno: P.T.E.A.


Wszechnica Sp. z o.o. .
Appendix

SD1234.zip

SD1234.zip

Put a google drive/dropbox/onedrive link

DO NOT PASSWORD

Include username and password

You might also like