84 lines
2.1 KiB
Plaintext
84 lines
2.1 KiB
Plaintext
1
|
|
00:00:00,340 --> 00:00:02,300
|
|
You've heard Alvin come up with several conclusions for how to
|
|
|
|
2
|
|
00:00:02,300 --> 00:00:04,510
|
|
set up the program. And we're going to ask that you follow his
|
|
|
|
3
|
|
00:00:04,510 --> 00:00:07,590
|
|
instincts. We'll spell that out here in a little more technical details
|
|
|
|
4
|
|
00:00:07,590 --> 00:00:11,030
|
|
so that everyone is working from the same basic starting point. The
|
|
|
|
5
|
|
00:00:11,030 --> 00:00:13,770
|
|
program must be written in Java and must not make you any
|
|
|
|
6
|
|
00:00:13,770 --> 00:00:16,730
|
|
nonstandard Java libraries. You will be tested on a machine with the
|
|
|
|
7
|
|
00:00:16,730 --> 00:00:21,060
|
|
vanilla installation of Java 1.6. Your program must compile on the command
|
|
|
|
8
|
|
00:00:21,060 --> 00:00:25,360
|
|
line using the Java C command without any additional options. All code
|
|
|
|
9
|
|
00:00:25,360 --> 00:00:27,530
|
|
required to execute the program that is not part of the
|
|
|
|
10
|
|
00:00:27,530 --> 00:00:31,950
|
|
standard JDK, must be included as source code with your program.
|
|
|
|
11
|
|
00:00:31,950 --> 00:00:34,380
|
|
Your program should be an application. That is, it should have
|
|
|
|
12
|
|
00:00:34,380 --> 00:00:37,160
|
|
a main method and should be executable from the command line using
|
|
|
|
13
|
|
00:00:37,160 --> 00:00:40,100
|
|
the Java command. The user should be able to provide a
|
|
|
|
14
|
|
00:00:40,100 --> 00:00:42,450
|
|
file path to the file they wish to be analyzed as a
|
|
|
|
15
|
|
00:00:42,450 --> 00:00:45,880
|
|
command line argument. User should be able to specify which delimiters
|
|
|
|
16
|
|
00:00:45,880 --> 00:00:50,570
|
|
count as sentence separators, using the flag -d, defaulting to Lauren's initial
|
|
|
|
17
|
|
00:00:50,570 --> 00:00:53,930
|
|
thoughts on what should be used as delimiters. The user should be
|
|
|
|
18
|
|
00:00:53,930 --> 00:00:58,170
|
|
able to specify a lower limit for word length, using the flag -l,
|
|
|
|
19
|
|
00:00:58,170 --> 00:01:02,100
|
|
defaulting to Lauren's guess at what value might be good. Finally, the program's
|
|
|
|
20
|
|
00:01:02,100 --> 00:01:03,710
|
|
output should be the average sentence
|
|
|
|
21
|
|
00:01:03,710 --> 00:01:05,720
|
|
length. Rounded down to the nearest integer.
|