Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

: 1. Create a new project and add a JFrame that you will use to design the graphical interface for the user. a. Add a

image text in transcribed
:
1. Create a new project and add a JFrame that you will use to design the graphical
interface for the user.
a. Add a textArea that the user will enter the text to be analyzed.
b. Add one button to trigger that analysis of the text.
c. Add enough labels to display the results from the methods described below.
2. Create a private method named isPalindrome. It should take a String as an argument
and return a boolean result that indicates if the string is a palindrome (true is a
palindrome; false is NOT a palindrome). Please remove any non-alphabetic and non-
digits characters as well as all whitespace and ignore the case of the characters when
determining if the string is indeed a palindrome.
3. Create a private method stringStats. It should take a String as an argument and then
returns an array of int. This function needs to calculate the following statistics and
return them in the following order:
a. number of alphabetic characters
b. number of numeric digits
c. number of control characters (ACSII characters from 0 to 31)
d. number of lower case characters
e. number of upper case characters
f. number of whitespace characters
4. Add an event to the button and call both of the above methods passing the text of the
textArea. Using the result of the isPalindrome method display the results on the form in
a clear manner. Using the returned array that is sent back from the stringStats method
display the statistics of the characters used in the textArea.
5. Test your application thoroughly to be sure it is working accurately. It may be difficult
to enter control characters but you should find that the program will find some without
much effort
Obyertive - Copegile asd nab a minide propezam - Drujen a rias dellnations - Cruaic clus methode - Develop Siriag munipulution lechniyses - Vtiliae medleab in the Serine and Clankte clans O*erimer thamens that cenipriss the enesed deta. Mrephel tipe These are several leva deses dot yos mey fied mefl fie Ans arelsutsen. These Serpe: invrime fer tal ines. a. Mdd a taskirs that ite ener will enter ihe ied le be ansbynal. 5. Mde une hurine be mieser that analyis of the iast 2. Create a peinase mathod named hFaliadreme. is abveld alie a Steiag a an appunser devenening if twe drieg is adend a palindnime. whers then is the fellowing oedir: 1. namber of aphubectec characiert b. murtare of auneric dipts d. namber of lires eise chander c. namber of apper case churactern f. Eardec ef whatcopere thandien Assignment \#3 CIrits6 - higranaing It 5. Test year applicalia thineptly is be une in is aumbing accuratch it may the diffenit is enker conted ctaracker but yos shole find that the poogran wil find mene witest mbect ellser

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data With Hadoop MapReduce A Classroom Approach

Authors: Rathinaraja Jeyaraj ,Ganeshkumar Pugalendhi ,Anand Paul

1st Edition

1774634848, 978-1774634844

More Books

Students also viewed these Databases questions

Question

(6) If E(X) = 1 and E(X2) = 2, then the variance is 2.

Answered: 1 week ago

Question

Find the derivative. f(x) 8 3 4 mix X O 4 x32 4 x32 3 -4x - x2

Answered: 1 week ago