0% found this document useful (0 votes)
7 views8 pages

Solution Development

The document outlines a group assignment for a Bachelor of Computer Science module on Problem Solving Techniques, focusing on solving a compound interest problem using a structured approach. It includes various charts such as the Problem Analysis Chart, Interactivity Chart, IPO Chart, and Coupling Diagram, along with algorithms, flowcharts, and pseudocode for the solution. The specific problem involves calculating the amount for a principal of 4000 shillings at 4% compound interest over 6 years.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views8 pages

Solution Development

The document outlines a group assignment for a Bachelor of Computer Science module on Problem Solving Techniques, focusing on solving a compound interest problem using a structured approach. It includes various charts such as the Problem Analysis Chart, Interactivity Chart, IPO Chart, and Coupling Diagram, along with algorithms, flowcharts, and pseudocode for the solution. The specific problem involves calculating the amount for a principal of 4000 shillings at 4% compound interest over 6 years.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

SE

FACULTY OF COMPUTING AND MATHEMATICS


BACHELOR OF COMPUTER SCIENCE
ACADEMIC YEAR 2024/2025 SEMESTER 1

MODULE ; PROBLEM SOLVING TECHNIQUES


MODULE NAME ;CSU07101
SUPERVISOR:DR MAKOTA
GROUP 3 , SUBGROUP 6
GROUP ASSIGNMENT

NO NAMES REGISTRATION NUMBER


1 MARM YAHYA CHARAHANI IMC/BCS/2411717
2 SWAHIBA JUMA MUSA IMC/BCS/2411931
3 NANNA MISANGU MALIBATA IMC/BCS/2412608
4 EMMANUEL PAUL MALILO IMC/BCS/2426001
5 FRANK MANYORI GODFREY IMC/BCS/2426695
6 ALI USIJALA WANJARA IMC/BCS/2427402
QUESTIONS.
To prepare a problem and solve it using the seven steps of solution development which
occur in our daily life.
THE PROBLEM
Find the amount for a principal of 4000shillings at 4% compound interest after investing
for 6 years. Given A =P(1+R/1000)^T
ANSWERS
1. THE PROBLEM ANALYSIS CHART (PAC)

GIVEN DATA REQUIIRED RESULTS


Principal – 4000shillings Amount for a principal
Rate – 4%
Compound interest -6years

REQUIRED PROCESSING SOLUTION ALTERNATIVES


A= P*(1 + R/100)^T 1.enter all data
2.enter principal and rate
3.process one bank in one run

2.THE INTERACTIVITY CHART

Amount control

Read Calc Print

3. THE IPO CHART

INPUT PROCESSING MODULE OUTPUT


REFERENCE
1.beginning 1.enter data Read 1. ending amount
principal (change interest
2.interest rate rate to hundredths) 2. all input data
3.number of years 2.calculate amount Calc
AMOUNT
=PRINCIPAL
(1+INTEREST Print
/100)^TIME

4. COUPLING DIAGRAM AND DATA DICTIONARY

AMOUNT CONTROL

P R T P R T A P RT A
READ CALC PRINT

Where:
P =principal
R =rate
T=time
A=amount
ITEM VARIABLE DATA MODULE SCOPE PSEUDONYM ERROR
NAME TYPE CHECK
Principal Principal Numeric Control/read Local None None
-real /calc/print parameters
Rate Rate Numeric- Control/read/calc Local None None
real /print parameters
Number Year Numeric- Control/read/calc/print Local None None
of years real parameters
Time Time Numeric- Control/read/calc/print Local None None
real parameters
Amount Amount Numeric- Control/read/print/calc Local None None
real parameters

ALGORITHMS, FLOWCHART, PSEUDOCODE.

ALGORITHMS FLOWCHART Pseudocode Testing

Amount control Process read 1. start


amountcontro
Process read
lll
Process calc 2. transfer to read
End Process calc

Read 3. transfer to calc

Process print 4.transfer to print

calc

end

print

Exit
Internal and external documents
Internal documents External documentation
1. remark at top ;calculate the amount 1. same as 1 in internal documentation.
given the principal , interest rate, number
of years.

Algorithm flowchart Pseudocode Test


Read ( principal , Read Principal
rate , years ,time.
Read Enter data 4000
1. enter principal ,
interest , time. Rate = rate/100

2, rate = rate/ 100 Enter Interest


principal , exit
3. exit interest,
4%
time

Rate
=rate/100 Years

Exit
Time
Internal documentation External documentation
1. remark on top ;to write all data and 1. explain input data
interest conversion

Algorithms Flowchart Pseudocode Testing


Calc (principal ,amount, Amount =
interest) 4000*(1+0.25)^
Calc Calc ( principal, interest.year, (6)
1. amount = principal * time, amount)
(1 +
interest/time)^(years*ti Amount=principal*(1+interest/ Amount
me) Time)^(year*time) =4000*(1+0.25
Amount=principal )^6
2. exit *(1+interest/time) Exit
^(years*time)
Amount
=15258.78

Exit
Internal documentation External documentation
1. remark at top ;module to enter all data 1. specify formula
and interest

Algorithm flowchart Pseudocode Test

Print ( principal, Print( principal,


interest, year. Print interest, time.
Time) Print amount
Print amount
1. print amount, Print interest , time
principal, time amount
interest

Exit exit
exit

Internal documentation External documentation


1.remark at top ;module to print required 1. specify output
output

You might also like