CSC 234 - Lab 1

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

  1. DoubleLetters.java
  2. diffdoubles.txt
To hand in your Lab 1 files, follow the steps listed below from the Wright Lab computers:
  1. Open the Terminal application.
  2. SSH with ssh username@cs.centenary.edu to connect with the cs server.
  3. Type in your password.
  4. Make a new directory with mkdir csc234
  5. Make a new directory with mkdir csc234/lab1
  6. Log out of the cs server with logout
  7. Change to the directory where you have your files on the local computer.
  8. Securely copy your files to your directory with scp filenames username@cs.centenary.edu:"csc234/lab1"