Home | How it works | Projects archive | Contact Us
Air Compressor Bot
 
The Career Path of Freelance Programming Jobs 

   Java Project

Bidding Time:
29/10/2004 22:12 - 30/10/2004 22:12
Budget:
N/A
Status:
Closed

Job Type:
Java
Description:



Hello ladies and gentlemen
I came across your website and I am show great interest in what ya'll have to
offer. I have project in Java I would like to see if ya'll could help with. I am
new to java and I am trying to learn it on my own and would appreciate any help
you give me.
I have a deadline of Sun Oct 31,2004 at 11:59pm, the sooner the better
Here are my specs for my project

Write a pair of classes, TelePhoneWordsModel and TelePhoneWordsGUI, which allow
the user to find all of the letter permutations assigned to a seven digit phone
number.
It is possible for the user to enter an invalid number or other value into the
GUI. The program will expect a seven digit number to be entered into the GUI. If
the user enters a number which is shorter, longer, or contains anything other
than numbers you should return "Invalid phone number". If the user enters a
VALID phone number which contains a zero or one in the phone number you should
return "Zero or One in phone number".

The program must create the class TelePhoneWordsModel and implement the
following public methods

public TelePhoneWordsModel()
Null constructor, which must initialize all of your instance variables. This
must set the initial value of the phone number to an empty String.

public void setTelePhoneNumber(String)
Method, which will accept a single String as a parameter and set the value of
the phone number to that String. This method should NOT change the value of the
phone number if it is provided a null value.

public String getTelePhoneWords()
Method, which will return either an error String or all of the permutations of
the letters representing the phone number as a single String.

public static void main(String[] args)
Main method which should contain your test code to show you have tested your
model. This will prove your code has been tested and is a REQUIRED method.

The program must create the class PhoneWordsGUI and implement the following
public methods

public TelePhoneWordsGUI()
Null constructor, which must initialize all of your instance variables. This
must create the GUI and set it up.

public void actionPerformed (ActionEvent)
This method is required to handle the actions generated from the button.

public void main(String[])
This method must be exactly as given below:

public static void main (String args[]) {
PhoneWordsGUI myGUI = new PhoneWordsGUI()
myGUI.show()
}

You may not have ANY OTHER PUBLIC ITEMS in the code. All other items must be
private. Your code must run with the given main method and must meet the
specifications below.


Model Specification:
The model must implement the methods given above. The model is responsible for
either returning an error message or all 2187 combinations.

If the number entered is not seven digits long or contains anything other than
numeric digits you must return "Invalid phone number". If the valid phone number
input contains the digit zero or one then you must return "Zero or One in phone
number".

If the number is seven digits long and does not contain the numbers zero or one
then you must find all of the "TelePhoneWords" for the number. For each phone
number there are 2187 unique letter combinations which can be used to represent
the phone number. In these cases you should return a single string which all of
the unique combinations with no repeats. Each number should be divided by a
single space. Each "TelePhoneWord" in the String should consist of seven
uppercase letters.

GUI Spec:
The input JTextArea should be a single line tall and allow the user to input a
value. It will be preceded by a single JLabel describing the input area.

The output JTextArea should be 10 lines tall and be inside a JScrollPane. The
JTextArea should have scrolling enabled and should not allow the user to edit
the area. The code below is a demonstration of how to setup the JTextArea:

JTextArea output = new JTextArea(10,40)//Create the text area
output.setEditable(false) //Do not allow the user to edit
output.setLineWrap(true) //Allow the lines to wrap
output.setWrapStyleWord(true) //Wrap at the white spaces
JScrollPane outputScroll = new JScrollPane(output) //Let the text area scroll

These items require javax.swing.* and java.awt.* be imported.

The GUI must implement the actionPerformed method. The only item which should
trigger this method to run is the user pressing the "Go" button. The pressing of
the "Go" button should be used to update the phone number in the model and then
to update the output display.

Remember that in order for the GUI to use the model object you must create an
instance variable which is of type TelePhoneWordsModel inside the GUI.

All help is appreciated!! Thanks!

STOPzilla! Anti-Spyware Software

Related Projects:
Link-exchange Script
Poker Pal Clone
Minor Php And .fla Tasks
Flash Page And Code
Automatically Compare Database

This project is the proprietary information of . Click here to remove this project from OUR database.
Operating System:
Linux
Database System:
(Please Suggest One)
<<< back

Recent Projects Archive:

Thursday - Wednesday - Tuesday - Monday - Sunday - Saturday - Friday

View all freelance web projects

 
Home | Projects archive | RSS | Resources | Links | Contact Us © 2004-2009 ProjectsList.biz /0.046