Show Bid Request
String Class Assignment
Bid Request Id: 8580
|
|
|
Posted by: |
redmandm (7 ratings)
(Software buyer rating 10)
|
Posted: |
Feb 7, 2002 7:25:36 PM EDT
|
Bidding Closes: |
Feb 21, 2002 7:37:01 PM EDT
|
Viewed (by coders): |
139 times
|
Deadline: |
2/10/2002
TIME EXPIRED
|
|
|
|
Description:
1. Write an application (or Applet) that reads at least 4 lines of text (using the JOptionPane.showInputDialog() method, concatenates the 4 lines of text into one long string.
2. Code a method that will return a new string consisting of the LAST letter of each word . For example if the user entered: JAVA Programming is Wonderful Then your method should return the string "Agsl" Signature: String lastLetter();
3. Prints the number of words (words are separated by white space) Signature: int nWords();
4. Prints the longest word Signature: String longestWord();
5. Prints the user input backwards. For example if the user entered the phrase : JAVA Programming is interesting. The output string should read interesting is Programming JAVA Signature: String backwards();
6. Determines if the string is a palindrome. A palindrome is a word that reads the same forwards and backwards (ignore case). A1001A, MOM, Dad are palindromes. Signature: boolean palindrome();
7. Ask the user, using the JOptionPane.showInputDialog() method, to enter a substring. Write a method to determine if the substring can be found is in the original string (1. Above). For example if the user entered: :JAVA Programming is Wonderful" and the substring was "rogr" then your method should return TRUE Signature: boolean searchSubstring(String sub);
8. Ask the user, using the JOptionPane.showInputDialog() method, to enter a character. Write a method to determine the number of times (ignoring case) the character can be found is in the original string (1. Above). For example if the user entered: 9. :JAVA Programming is Wonderful" and the character is 'p' (or 'P') then your method should return 2 Signature: int searchChar(char chx);
9. Please use javadocs utility to comment your code. Show the output (MyStrings.html) to your instructor
10. Use the JOptionPane.showMessageDialog() method to display to display the original user input string and your output
11. NOTE: Rather than use the JOptionPane.showMessageDialog() method consider using the JTextArea class.
The assignment is in detail in the attachment
Deliverables: Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
Complete copyrights to all work purchased.
Platform:
Netscape; Internet Explorer .. also running off of windows 2k and 98
Must be 100% finished and received by buyer on:
Feb 10, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation, you can report it to: abuse@rentacoder.com.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$20 (USD)
|
Feb 7, 2002 8:22:18 PM EDT
|
10
(Excellent)
|
|
|
Hello,
This is Kats again. I can do this by Friday night.
- Kats
|
|
|
|
|
|