CoSc 200 Laboratory # 10
Ciphers, Web Links, and Groceries
Objective: To gain experience with strings, arrays, and streams.
You will be writing three programs. All three use input and output streams. In Cipher, you will provide a method for enciphering an input stream and sending the cipher to an output stream. In LinkFinder, you will provide a method that will read an input stream attached to a web page, find the links on that page, and send the names of these links to an output stream. String methods will help your program find links. In CheckOut, you will provide a method that will read a customer grocery order from an input stream and send a summary of these orders to an output stream. Information will need to be stored in an array.
More details are contained in the files in this zip file or this folder. Each program has a test of the correctness of your implementation. You should provide a second test. This means that you should work out by hand what the result of the test should be and compare that with what your implementation does.
| Value | Feature |
5 |
The Cipher method encipher is implemented correctly, and a second test is provided. |
5 |
The LinkFinder method findLinks is implemented correctly, and a second test is provided. |
10 |
The CheckOut method process is implemented correctly, good use is made of arrays and classes, and a second test is provided. |
As with previous lab assignments, you should submit your three ".java" files through Blackboard. You can either add these files separately before you submit, or you can first zip together these files into a single ".zip" file and submit this single ".zip" file.
Submission Deadline: 3:00pm on Tuesday, April 4. Note that once you submit, it is impossible to submit a revision.
Resubmission and Late Submission Deadline: 3:00pm on Tuesday, April 11. A 5 point penalty will be assessed for a resubmission or late submission.
May your messages remain confidential, may you always be connected, and may you always be able to purchase food!