Write a main application called Project1.java, and a GUI (that extends JFrame) called VowelGUI.java. The main...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
Heres how you can implement the Java files as described Project1java Main applicat... View the full answer
Related Book For
Starting Out With Java From Control Structures Through Data Structures
ISBN: 9780133957051
6th Edition
Authors: Tony Gaddis
Posted Date:
Students also viewed these programming questions
-
The Rome Statute only recognizes personal jurisdiction over natural persons who are over the age of 18. There is no such thing as corporate criminal liability under the Rome Statute. In other words,...
-
Use the following timeline to answer the question(s) below. 0 1 2 3 $600 $1200 $1800 At an annual interest rate of 7%, the future value of this timeline in year 3 is?
-
Write a memo to explain for a new employee the difference between the cash basis of accounting and the accrual basis Mention the roles of the revenue principle and the matching principle in accrual...
-
In Exercises evaluate the definite integral. Use a graphing utility to verify your result. TT/4 77/8 (csc 20 cot 20) de
-
Do people who are interested in environmental issues visit museums more often than people who are not? The General Social Survey asked 990 people how interested they were in environmental issues, and...
-
Absorption Costing Versus Variable Costing. Prime, Inc., produces tricycles. The company has no finished goods inventory at the beginning of year 1. The following information pertains to Prime, Inc....
-
A company paid $217.50 for an item. The original price was $296.60, but this was marked down 40%. If the operating expenses are 35% of the cost, find the operating loss and the absolute loss What is...
-
Seth Bullock, the owner of Bullock Gold Mining, is evaluating a new gold mine in South Dakota. Dan Dority, the company's geologist, has just finished his analysis of the mine site. He has estimated...
-
Lassie and Laddie is a toy-manufacturing company that markets its products in several countries. The company's policy is to ensure that its workforce is comprised of people from different countries...
-
On which provision in the U.S. Constitution was Coors relying in its challenge of the statute and regulations? Does a corporation such as Coors possess the same constitutional right to freedom of...
-
. A market is described by the following system of equations: 300 - 5P and 60 + P. Suppose a tax of $6 is placed on the seller. What is the price paid by buyers AFTER the imposition of the tax ?
-
C a) Describe the role of group dynamics in a team b) Describe the role of group dynamics in making a team become innovative c) Describe the role of group dynamics in making a team remain innovative
-
CONGRATULATIONS! Because of your superior knowledge of public finance, you have been appointed town manager of Chapeau de Ste. Marie, a small town in New York State, way the hell up by Canada. The...
-
3. Consider the following "Lemons" market. Suppose that a peach is worth $10,000 to a buyer and $6,000 to a seller and that a lemon is worth $3000 to a buyer and $500 to a seller. 4/5 of the cars are...
-
Sportique Boutique reported the following financial data for 2012 and 2011. Instructions(a) Calculate the current ratio for Sportique Boutique for 2012 and 2011.(b) Suppose that at the end of 2012,...
-
If a class has this method, it is called automatically just before an instance of the class is destroyed by the Java Virtual Machine. a. Finalize b. Destroy c. Remove d. Housekeeper
-
What classes do you use to read data from a file?
-
How do you determine in code whether a check box is selected?
-
Find the z-scores that bound the middle 70% of the area under the standard normal curve.
-
Find the z-scores that bound the middle 80% of the area under the standard normal curve.
-
Find the z-scores that bound the middle 98% of the area under the standard normal curve.
Study smarter with the SolutionInn App