Advanced level 2025 North West Regional Mock computer science 3

Advanced level 2025 North West Regional Mock computer science 3

Advanced level 2025 North West Regional Mock computer science 3

SECTION A: Problem Solving (Programming) (30 marks)
Problem : A
“Njangi Groupin a certain community has decided to automate their financial processes, as a
result of the rapid increase in membership making manual processing of financial transactions difficult.
Financial transactions include: Checking members balance, Checking Eligibility for a Loan, Calculating
Interests
, and setting deadlines for payments.
The management has decided to make life easy to both members and financial officers by developing a
Cash Dispenser Machine. Members can use this machine to check their balance, withdraw funds, check
their eligibility for a loan and so on
.
Aigcn Tech, an IT startup company in which you work as a software developer has been given the Job to
develop a program for the Cash Dispenser System.
The System analysts have already done their Job by analyzing the requirements of the system and
documenting them in a Systems Requirements Specification
Document.
As the
lead Software Developer, your role is to coordinate the development of the required program for the
system. Each component of the softw are has to be implemented as described in the Software Requirements
Specification Document
.
Go through the Work Breakdown Structure of the software Requirements Specification outlined below in
the form of tasks which you and your team are to carry out to complete the project.
Sample Data: Figure one below shows how each member in the Njangi” has their first name and balance
stored separately
with a matching unique PIN code known only by them. The figure 1 belowshows a
sample of
how information about a few members is stored. The PIN Codes are shown in the figure as the
“indices”.
NB: 101 105 are Unique PIN codes assigned Each Member
Member Tall
a Kelly BeFog Jid Penn
101 102 103 104 105
A

Balance 10000 50000 25000 55655 1565785
101 102 103 104 105
Figure 1

The Array Balancehas the corresponding account balance for each member as indicated with the PIN.
The following Algorithms may be required for some parts of your solution.

Algorithm 2
Variables: Balance[ ], Memberf ], PIN, Amount,
loanAmount, Name, Option, K.
//Inside your main program, do the following
* Add program statements that prompt and allow a user
to enter their PIN and Name
* A *Return value from Authentic function
iF (A^irr
REPEAT
* Display Cash Dispenser Menu Options, i.e
1. Check Balance
2. Cash
Withdrawal
3
. Loan
* Prompt and allow user to enter an option
Algorithm 1
Function Authenticate(Array, PIN, Name)
Boolean p = 1//assumed not authentic
For
i «101to 105 Do
IFArray
[i] = Name THEN
IF i = PIN THEN
P
= 111 authentic
break
End If
End
IF
End For
Return
p
End Procedure

* SWITCH (option){
Case of
Check Balance
Function call
Break
Case of Widthrawal
Prompt & allowuser enter withdrawal Amount |

PDF is loading please wait...


Leave a comment

Your email address will not be published. Required fields are marked *

JOIN OUR WHATSAPP GROUP! / REJOIGNEZ NOTRE GROUPE WHATSAPP!
sponsors Ads