Question: Write a GUI-based program that analyzes a word. The user will type the word in a TextField. You should add appropriate labels and provide buttons
Write a GUI-based program that analyzes a word. The user will type the word in a TextField. You should add appropriate labels and provide buttons for the following:
One Button when clicked, displays the length of the word
Another Button when clicked, displays the number of vowels in the word
Another Button when clicked, displays the number uppercase letters in the word
For this, you should design and code a separate non gui class encapsulating a word and its analysis, then instantiate an object of that class inside your gui class and call the various methods as needed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
