CST242 Project 4: Chapter 14
String, Character and Regular Expression Apps
-
Create a new Java or JavaFX (not FXML) project with one of the following apps taken from
the instructions for exercises at the conclusion of Chapter 14:
-
14.5 (Random Sentences) Complete this
assignment as written either as a Java console application for a maximum of
8 out of 10 points, or as a JavaFX application with a
Button
event handler for a maximum of 8½ out of 10 points;
if you do the console version, generate and display the 20 sentences as specified
in the textbook; otherwise if you do the JavaFX version, just generate one
sentence each time the Button
is clicked
-
14.7 (Pig Latin) Complete this
assignment as written as a Java console application for a maximum of
8½ out of 10 points; for credit of an additional
½-point either (a) use a regular expression and the
String.matches()
method to validate that all tokens from the
String.split()
method are alphabetic
characters (display an error message for invalid input); or (b) run the app
as a JavaFX application with a Button
event handler; complete
either (a) or (b) for a maximum of 9 out of 10 points;
or complete both of the above additional elements
for a maximum of 9½ out of 10 points
-
14.9 (Displaying a Sentence with Its Words
Reversed) Complete this assignment as written as a Java
console application for a maximum of 7½ out of
10 points; for credit of an additional ½-point
either (a) use a regular expression and the
String.matches()
method to validate that all tokens from the String.split()
method are alphabetic characters (display an
error message for invalid input); or (b) run the app as a JavaFX application
with a Button
event handler; complete either (a) or (b) for
a maximum of 8 out of 10 points; or complete
both of the above additional elements
for a maximum of 8½ out of 10 points
-
14.10 (Displaying Strings in Uppercase and
Lowercase) Complete this assignment as written as a Java
console application for a maximum of 7 out of 10 points;
for credit of an additional ½-point either (a)
use a regular expression and the
String.matches()
method
to validate that all characters are alphabetic
or blank spaces (display an error message for invalid input); or (b) run
the app as a JavaFX application with a Button
event handler;
complete either (a) or (b) for a maximum of 7½
out of 10 points; or complete both of the above
additional elements for a maximum of 8 out of 10 points
-
14.12 (Searching Strings) Complete
this assignment as written as a Java console application for a maximum of
9; out of 10 points; for credit of an additional
½-point either (a) use a regular expression and the
String.matches()
method to validate that all tokens from the
String.split()
method are alphabetic
characters (display an error message for invalid input); or (b) run the app
as a JavaFX application with a Button
event handler; complete
either (a) or (b) for a maximum of 9½ out of 10 points;
or complete both of the above additional elements
for a maximum of 10 out of 10 points
-
14.22 (Morse Code) Complete this
assignment as a JavaFX application with a
Button
event handler
for a maximum of 10 out of 10 points; use regular expressions
to test whether the user has entered an English-language phrase (only letters
and blank spaces) or a Morse code message (only dots (.), dashes (-) and blank
spaces) (display an error message for any other invalid input); then perform
the appropriate coding or decoding and display the result
-
If you are creating a JavaFX application, use a combination of layout objects, as well
as font and color formatting to create a pleasing, professional looking form window
-
Provide full documentation using the Javadoc standard and based upon the
downloaded sample files for the unit
-
Students may work on all projects in teams of two or three,
and, if so, all students in the group must submit the same project to their own dropboxes
in Brightspace. In the text box's dropbox, as well as in the source code documentation
(comments), state the name(s) of the classmate(s) with whom you worked.
-
When all steps are finished, create a .ZIP archive (not a .RAR)
of the entire project. This completed assignment with a copy of all files from the
NetBeans project submitted electronically via an attachment to a
Brightspace
dropbox is due to Prof. Struck by 11:59 p.m. on the date specified in the course outline.