404 Placement Activies, Tri1 2014-15

Do I need to do this? You may register for CS 406/410 if you get a 4 or a 5 on the APCS exam.

If you have not taken the exam, you must complete this project to be allowed to register beyond CS 404.

If you are placed out of 404 because of the AP, you are strongly encouraged to take it during your time at NCSSM. It teaches you how to write event-driven GUI programs using proper exception handling. However, this placement process will allow you to register for CS 410 in Trimester I without taking 404.

The Project Write a Java program that does the following. It should compile under Java 8.

SearchFrame.java Your SearchFrame will look like this.


    -------------------------------------------------------------------------------------------
    | Search Frame:  Show the full path of the current dictionary here or "No dictaary"       |
    -------------------------------------------------------------------------------------------
    |  Expression:   |(JTextField)          |  Dictionary: (some file name; JLabel)           |
    -------------------------------------------------------------------------------------------
    |                                                                                         |
    |                                                                                         |
    |                                                                                         |
    |                                                                                         |
    |           This content pane should have vertical but not horizontal                     |
    |           scrolling                                                                     |
    |                                                                                         |
    |                                                                                         |
    |                                                                                         |
    |                                                                                         |
    |                                                                                         |
    ------------------------------------------------------------------------------------------|  

    This program will have the following menus.  It will keep one dictionary file open at a time.

    File:  
        Open Dictionary File  -> The current dictionary is a private state variable. 
        Open Text File  -> this will open a text file to read.  
        Create Dictionary File  -> A JFileChooser appears for the user to save.  Default name:  text file's name.dict
            This should save the dictionary.
        Save Output  -> this will save your output ot a file.  A JFileChooser will appear for the user

The JTextField When the user hits enter in the JTextField, the current dictionary file is searched and all words matching the pattern are listed.

The user enters a pattern such as

 a--rr--e

This program will walk through the dictionary and list all words in the dictionary file fitting this pattern. A dash ("-") stands for one character.