Assignment 1: Word Scrambling


Description

This assignment is to warm up, to get back into JAVA. No object oriented techniques are required (or useful) in this assignment.

Up front: you MUST work with a JAVA IDE (Integrated Development/Debugging/Design Environment), allowed are Netbeans or Eclipse (if you want to use more exotic ones, please ask the TA). No, text editors without debugging support are not allowed. In the future, we will work on more complex tasks, which are way easier manageable with IDEs.

A little information about the task first:

Aoccdrnig to rscheearch at an Elingsh uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, olny taht the frist and lsat ltteres are at the rghit pcleas. The rset can be a toatl mses and you can sitll raed it wouthit a porbelm. Tihs is bcuseae we do not raed ervey lteter by ilstef, but the wrod as a wlohe.  

 

...so: when we are reading, mostly the first and last letter are important, the rest can be pretty much scrambled. To examine that statement, your task is to write a word scrambler.

·        Store about 10 sentences in your program

·        Scramble the words randomly, keeping only the first and last letter at their position.

·        Print the sentences

It might be helpful to look up the following JAVA classes / methods:

·        String Tokenizer

·        java.util.Random

That's it already.

 

Score: 10 points

...of course you can get bonus points. Bonus points are usually given for extraordinary work , which includes work outside of topics explained in class. In this case:

·        3 bonus points for scrambling a website: ask the user for a web address, load the website, scramble the words and print them

·        3 bonus points for a graphical user interface (we haven't handled that yet, but we will. In case you want to prepare yourself, look it up how it works! For bonus points!

Enjoy!

Deadline: Thursday, Sept. 8, 11:59pm.