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
-
What will excessive oxygen in the boiler water cause to take place?
-
The National Archives of Australia (Archives) (the Customer) is responsible under the Archives Act 1983 (Cth) for the preservation and storage of Commonwealth records, including the archival...
-
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?
-
Consider the weighted inner product (v, w) = v1w1 + 1/2v2w2 + 1/3v3w3 on R3. (a) What are the conditions on the entries of a 3 3 matrix A in order that it be self-adjoint? (b) Write down an example...
-
7. You are hired as a contractor to replace the roof of a totally normal building. V= V= (R-R) V=S (103-93) V= (271) V=1136.81m The original roof was made of aluminum, but the new one will be made of...
-
Browne \& Company issued 200,000 shares of \(\$ 1\) par value common stock at a price of \(\$ 5\) per share and issued 10,000 shares of no-par value common stock at a price of \(\$ 10\) per share....
-
The Clarkson Company recently reported net profits after taxes of $15.8 million. It has 2.5 mil-lion shares of common stock outstanding and pays preferred dividends of $1 million a year. The companys...
-
The goal of Uber's expansion is to increase the size of its network to the point where it produces a liquidity network effect. The greater the number of drivers that are available, the shorter the...
-
Working for a home care agency, you have been assigned to assist the client with tasks involving his money and are required to accompany your client to do personal banking, buy groceries, and pay...
-
When contemplating compensation communications, remember that what occurs when a company follows trends in programs and techniques, and the company needs to benchmark selectively?
-
Simplify the following Boolean function F, together with the don't care conditions d, and implement it with a. two-level NAND gate circuits. b. two-level NOR gate circuits....
-
contribution? J . Lo ( 3 ) Doris purchased a piano with $ 3 0 0 down and end - of - month payments of $ 1 2 4 for 2 percentage What was the purchase price of the piano ?
-
Research Critique Guidelines Part II Use this document to organize your essay. Successful completion of this assignment requires that you provide a rationale, include examples, and reference content...
-
The Lothridge Wholesale Beverage Company purchases soft drinks from producers and then sells them to retailers. The company began the year with inventory of $ 1 2 0 , 0 0 0 on hand. During the year,...
-
Company introduction. introducing the fundamentals of risk management to the CEO of that company. What is risk management and why this is important to the CEO? What are the issues that this...
-
How do the principles of (a) Physical controls and (b) Documentation controls apply to cash disbursements?
-
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?
-
Total actual cost exactly equals total standard cost, so everything must be okay. Comment.
-
Garcia Company used 6,300 pounds of direct material costing \($7.80\) per pound for a batch of products that should have consumed 6,000 pounds costing \($8\) per pound. What are the material...
-
Who in the firm might be responsible for each of the following variances? a. Materials price and efficiency variances b. Labor rate and efficiency variances c. Variable overhead spending and...
Study smarter with the SolutionInn App