Assigned Jan 12
Due Jan 16 End of Class
Overview
Write a Java program called DoubleLetters.java
to find all words in a file that have at least two different double letters,
and calculate the percentage of words in the file that meet this condition.
Using english-words.txt
as your sample input file, create the output file diffdoubles.txt
.
Materials
What to turn in
- DoubleLetters.java
- diffdoubles.txt
To hand in your Lab 1 files, follow the steps listed below from the Wright Lab computers:
- Open the Terminal application.
- SSH with
ssh username@cs.centenary.edu
to connect with the cs server.
- Type in your password.
- Make a new directory with
mkdir csc234
- Make a new directory with
mkdir csc234/lab1
- Log out of the cs server with
logout
- Change to the directory where you have your files on the local computer.
- Securely copy your files to your directory with
scp filenames username@cs.centenary.edu:"csc234/lab1"