Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a main application called Project1.java, and a GUI (that extends JFrame) called VowelGUI.java. The main program should open a file called input.txt which

imageimage

Write a main application called Project1.java, and a GUI (that extends JFrame) called VowelGUI.java. The main program should open a file called "input.txt" which will contain a paragraph. Read the lines from the file until there are no more. For each line, count the number of individual vowels in that line, using a counter for the vowels 'A' and 'a', a counter for the vowels 'E' and 'e', and so forth. The GUI should have a grid layout of one row and two columns (column 0 and 1). Column 0 should contain the original text from the file. Column 1 should contain 5 lines displaying the count of each of the vowels. Submitting the Project. You should now have the following files to submit for this project: Project1.java VowelGUI.java (You do not have to submit TextFileInput.java or the input file.) Submit a jar file. Rather than upload the files above separately, we will use Java's facility to create the equivalent of a zip file that is known as a Java ARchive file, or "jar" file. Instructions on how to create a jar file using Eclipse are on Blackboard. Create a jar file called Project1.jar and submit that. Upload your project to Blackboard by the due date for full credit. This is an input file for project 1 in CSCI 212, Fall 2022 semester. The basic idea of this project is to read lines from a file, and count the number of vowels that appear on all the lines. The actual description of the project is: Write a main application called Project1.java, and a GUI (that extends JFrame) called VowelGUI.java. The main program should open a file called "input.txt" which will contain a paragraph. Read the lines from the file until there are no more. For each line, count the number of individual vowels in that line, using a counter for the vowels 'A' and 'a', a counter for the vowels E' and 'e', and so forth. The GUI should have a grid layout of one row and two columns (column 0 and 1). Column 0 should contain the original text from the file. Column 1 should contain 5 lines displaying the count of each of the vowels.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Heres how you can implement the Java files as described Project1java Main applicat... 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

Step: 3

blur-text-image

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

Starting Out With Java From Control Structures Through Data Structures

Authors: Tony Gaddis

6th Edition

0133957055, 978-0133957051

More Books

Students also viewed these Programming questions

Question

What classes do you use to read data from a file?

Answered: 1 week ago

Question

How do you determine in code whether a check box is selected?

Answered: 1 week ago