Professional Documents
Culture Documents
PRLD_HOME EXAM
PRLD_HOME EXAM
ST10252399
PRLD5121
BCAD1
7/5/2023
JOSHUA OLADIPO
TABLE OF CONTENTS
QUESTION 1 ............................................................................................................. 2
Q.1.1) Identify and differentiate between the two programming models or
paradigms that will be considered for the development effort. Substantiate your
answer with examples related to the development of the application required by
the sports administrators. ....................................................................................... 2
Q.1.2) Explain how you will ensure that the application you develop will function as
intended before delivering it to the client. ............................................................... 3
Q.1.3) Name one tool that you can use to plan the logic for the application to be
developed for the sports administrators. ................................................................. 4
Q.1.4) Provide an example that will satisfy each of the following requirements. ..... 4
Q.1.4.1) Provide an example of a variable declaration that will store the number of
leave days applied for by a team player. ................................................................ 4
Q.1.4.2) Assume that the standard rate for a player (in any of the teams) is R75
000 a game. Write down the mathematical expression that will determine the
salary for a player based on the number of matches played in a given month. The
number of matches will be stored in a variable called “Matches”. ........................... 4
Q.1.4.3)................................................................................................................... 5
Q.1.4.4) State how you will write following statement as a comment in the
application. Calculate the player’s salary. ............................................................... 5
Q.1.5)...................................................................................................................... 0
QUESTION 2 ............................................................................................................. 1
Q.2.1)...................................................................................................................... 1
Q.2.2)...................................................................................................................... 2
QUESTION 3 ............................................................................................................. 3
Q.3.)........................................................................................................................ 3
QUESTION 4 ............................................................................................................. 4
Q.4.1)...................................................................................................................... 4
Q.4.2) Within the context of the Sports Administration application, describe one
example of a situation where overloaded methods could be used. ........................ 5
question 5................................................................................................................... 6
Q.5.1)...................................................................................................................... 6
Q.5.2) Explain the importance of implementing exception handling in the Sports
Administration application ....................................................................................... 7
REFERENCING LIST................................................................................................. 8
Page | 1
PRLD5121_HOME EXAM ST10252399
QUESTION 1
Q.1.1) Identify and differentiate between the two programming models or
paradigms that will be considered for the development effort.
Substantiate your answer with examples related to the development of
the application required by the sports administrators.
(Farrell, 2018), (GeeksforGeeks, 2019)
1. PROCEDURAL PROGRAMMING:
(GeeksforGeeks, 2019) Procedural programming can be characterized as a
programming paradigm built from structured programming and based on the notion
of calling process. Procedures, often known as routines, subroutines, or functions,
are essentially a set of computing processes to be completed(GeeksforGeeks, 2019)
Any given process may be invoked at any time throughout the process of execution
of a program, whether by other processes or by itself.
EXAMPLES:
• (Farrell, 2018)The creation of a function that prompts the user for the event to be
edited, obtains the event from the schedule, and enables the user to alter
information like the date, setting, or participants is a procedural method for
adjusting the details of an event. To complete the task, the function will go
through a set of stages.
• (Farrell, 2018)To add a new event to the schedule, a function may be written
using procedural programming. The function would ask for event information from
the user, check the data, and then add the event to the schedule data structure.
The focus is on outlining the process for include an event and carrying it out in a
certain order.
• (Farrell, 2018)A variety of reports may be produced using procedural
programming based on the scheduled events. A function that can create several
reports, such as a list of future events, a summary of events categorized by their
categories, and a report that emphasizes events with low participation, may be
developed by evaluating the event data. Every form of report adheres to a certain
procedure that has been properly thought out and put into place.
2. OBJECT-ORIENTED PROGRAMMING:
(GeeksforGeeks, 2019) Object-oriented programming can be characterized as a
programming model based on the object idea. Objects include attributes that hold
data and methods which include code. Programs for computers in object-oriented
programming are developed with the notion of objects which communicate with the
real world. The most common object-oriented programming languages are class-
based, which means that objects are instances of classes, which additionally define
their types.
Page | 2
PRLD5121_HOME EXAM ST10252399
EXAMPLES:
Q.1.2) Explain how you will ensure that the application you develop will
function as intended before delivering it to the client.
(IBM, 2019)
Page | 3
PRLD5121_HOME EXAM ST10252399
Q.1.3) Name one tool that you can use to plan the logic for the
application to be developed for the sports administrators.
(Farrell, 2018 pg. 17)
A flowchart is one tool that may be utilized to outline the logic for an application that
will be created for sports administrators. A flowchart is a diagram that shows the
phases or logic of an algorithm or procedure. You can pinpoint the many steps,
circumstances, and results that must be considered in the application by using a
flowchart. It simplifies task scheduling, delineates logical connections between
distinct components, and produces a visual depiction of the overall architecture of
the program. It can also be used to illustrate the flow of information, the order of
processes, and the conditions that must be met before certain actions can be taken.
By creating a flowchart, sports administrators may plan and construct the
application's logic in a logical and disciplined manner, guaranteeing that all important
features and choices are taken into consideration.
Q.1.4.2) Assume that the standard rate for a player (in any of the teams)
is R75 000 a game. Write down the mathematical expression that will
determine the salary for a player based on the number of matches
played in a given month. The number of matches will be stored in a
variable called “Matches”.
(Farrell, 2018)
Matches = 5
playerSalary = Matches * 75 000
Page | 4
PRLD5121_HOME EXAM ST10252399
Q.1.4.3)
(Farrell, 2018 pg. 64 - 66)
Application modules
Page | 5
Q.1.5)
(Farrell, 2018, Chapter 3 pg. 84 - 114 )
PRLD5121_HOME EXAM ST10252399
QUESTION 2
Q.2.1)
(Farrell, 2018 pg. 91)
Page | 1
PRLD5121_HOME EXAM ST10252399
Q.2.2)
(Farrell, 2018)
Page | 2
PRLD5121_HOME EXAM ST10252399
QUESTION 3
Q.3.)
(Farrell, 2018 pg. 244 - 248)
Page | 3
PRLD5121_HOME EXAM ST10252399
QUESTION 4
Q.4.1)
(Farrell, 2018 pg. 379 - 403)
Page | 4
PRLD5121_HOME EXAM ST10252399
Page | 5
PRLD5121_HOME EXAM ST10252399
QUESTION 5
Q.5.1)
(Farrell, 2018 pg. 430 - 439 )
Page | 6
PRLD5121_HOME EXAM ST10252399
Page | 7
PRLD5121_HOME EXAM ST10252399
REFERENCING LIST
✓ Farrell, J. (2018). Programming logic and design, comprehensive. 9th ed. Boston:
Cengage Learning.
✓ GeeksforGeeks. (2019). Differences between Procedural and Object Oriented
Programming. [online] Available at: https://www.geeksforgeeks.org/differences-
between-procedural-and-object-oriented-
programming/#:~:text=Procedural%20programming%20is%20used%20for.
✓ IBM (2019). What is software testing? [online] Ibm.com. Available at:
https://www.ibm.com/topics/software-testing.
✓ SearchSoftwareQuality. (n.d.). What is User Acceptance Testing (UAT)? [online]
Available at: https://www.techtarget.com/searchsoftwarequality/definition/user-
acceptance-testing-UAT#:~:text=Writer%20and%20Editor-.
Page | 8