Professional Documents
Culture Documents
Array SN Comp
Array SN Comp
1
TABLE OF CONTENTS
TITLE PAGE
Problem Statement 3
Problem Analysis 4
Implementation 7
Testing 8–9
Documentation 10
References 11
2
i) PROBLEM STATEMENT
A program will receive inputs from the user and save them in a double type array; price[].
The minimum data to be saved is ten (10). This program also allows user to retrieve the saved
data. User will enter the keyword (price) to be searched in the array. The program then will
display an appropriate message if the element is found, the index of found element and an
appropriate message if the element is not found.
3
ii) PROBLEM ANALYSIS
PROCESS : To declare and create array price that will store in the array. Repeat the
OUTPUT : message “The price is found” or message “The price is not found”.
4
iii) DESIGN A SOLUTION
Design a solution is creating an algorithm that represent step-by-step solution that will
transform the input into the output of a problem.
PSEUDOCODE
Start
declare ten price
initialize i to zero
endfor
read find price
for i less than ten
else if
print message “The price is not found”
endif
endfor
Stop
5
FLOWCHART
Start
i=0
F
i < 10 read find price
T
read price
F
i=i+1
i < 10 print message “The
price is not found”
T
T
F
i=i+1
6
iv) IMPLEMENTATION
7
v) TESTING
Program testing is the process of executing a program to verify that the program is correct
and it will do what it is expected to do.
8
The price is not found at any index.
9
vi ) DOCUMENTATION
External documentation is written in a place where people who need to use the software
can read about how to use the software. It would be things like flowcharts and design
documents.
10
vii) REFERENCES
- Mohd Amran, M.A & Maziah, M.Z. (2022). Introduction to Programming JAVA
LEARN BY EXAMPLE.
- Vijay, Ruslan Desyatnikov & Swati (2022, April 3). Java String Array.
https://www.softwaretestinghelp.com/java-string-array/
11
12