Sc025 Assignment Array
Sc025 Assignment Array
I declare this task is my own work except for the citations and summaries of which I acknowledged
the source.
………………………………..
Name : MUHAMMAD ZIKRY AIZUDDIN BIN ZAHERMAN
Date : 28th MARCH 2024
TO BE COMPLETED BY EXAMINER
Design A Solution
Implementation
Documentation
………………………………………………………… ……………………………………………………...
Name: Name:
Date: Date:
1
1.0 Problem Analysis
- IPO Chart
2
2.0 Design Solution
a) Pseudocode
Start
declare arrays employName and employAge for 8 elements
set i=0
while i<8
input employName and employAge
end while
input searchLetter
set j=0
set total=0
while j<8
if employName[j]==searchLetter
total=total+1
display index location
display employAge[j]
j=j+1
else
j=j+1
end if
end while
if total==0
display “No results found, sorry!”
else
display total
end if
Stop
3
b) Flowchart
4
5
3.0 Implementation
- Java Code
6
4.0 Sample Output
1)
2)