ns3
Project Phase 3
♫+
2
Due Saturday by 11:59pm Points 100
F3
PURPOSE:
Project Phase 3
NOTE: Each phase you will be ADDING new code to the SAME java file that you have already created in the prior
phases.
. Practice using methods
. Practice using parallel arrays
. Practice using file I/O
. Practice using String methods
. Practice challenging logic
. Practice user friendly design
Requirements P3:
Your program MUST include each of the following items.
P3-1. Create, load and use a pair of parallel arrays with meaningful data, related to your topic
P3-2. Load the parallel arrays with data from .txt files.
NOTE: The files MUST be named file1.txt and file2.txt.
X
P3-3. Create and use a method to load an array with data from a .txt file.
HINT: Your method logic will load one array with data (remember you can only return 1 array from the method). So
that means that you will invoke your method two times. Make the method generic, so that it can load ANY file into an
array.
NOTE: This method must be located in the SAME class file as your project program. I cannot manage multiple files
when I test your program.
$
4
R
F4
F
с
F5
%
5
T
G
F6
6
Submitting a text entry box or a file upload
Y
H
F7
&
7
U
F8
J
* 0
8
F9
K
F10
(
9
—
F11
L
Start Assignment
P
0:+
F12
PrtSc
+ 11
Insert2. file1.txt and file2.txt
I should be able to COPY your code, PASTE it into Eclipse and run it.
If you code does not compile and run, I will return it to you without grading and ask you to fix and re-submit it.
Project Phase 3
+
F3
1 – Create parallel arrays
2 – Load arrays with data from file1.txt and file2.txt
3- Method setup to load array
4 – String Method
5- All inputs – validated and/or defaults
6 – Clean up – user Friendly
7- Comment your code, as we do in class
8- Add another feature you wa to include that is not on this requirement list.
Add an output statement that reads: “Programmed By
submit.
Overall Quality
< Previous
tº
$
4
R
F4
с
F5
%
5
T
F6
6
Y
+
Criteria
F7
&
7
U
8
F8
11
to the beginning of every program you
8
* CO
8
F9
09
F10
(
9
F11
)
P
Ratings
0:- +
F12
10 pts
Pts
15 pts
15 pts
10 pts
10 pts
10 pts
5 pts
10 pts
5 pts
Total Points: 100
10 pts
Next ▸
PrtSc
+ 11
46
Insert
}