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?
-
Is a stronger dollar good or bad for America? Explain.
-
In Exercises, use a graphing calculator to determine which expression (A)(F) on the right can be used to complete the identity. Then try to prove that identity algebraically. A. B. cos x C. tan x +...
-
While the electromagnetic interaction between the photons and the charged electrons and positrons kept them in equilibrium with each other during the early universe, show that the direct...
-
The Lucky Seven Company is an international clothing manufacturer. Its Redmond plant will become idle on December 31, 2014. Peter Laney, the corporate controller, has been asked to look at three...
-
Unpolarized sunlight goes through two pairs of sunglasses. The second pair is oriented 20 o respect to the first. What is the exiting intensity in terms of the initial intensity I0?
-
Given the following demand functions, express TR as a function of Q and hence sketch the graphs of TR against Q: (a) P = 4 (b) P = 7/Q (c) P = 10 4Q
-
In this study, three distinct materials were subjected to tensile loading conditions to evaluate their mechanical behaviour. The stress-strain diagram of each material is illustrated in the graph...
-
Solve the following differential equations: 1. (5x +12x +6y) dx + 6xydy = 0 2. (3xy + 2xy) dx + (2xy-x) dy=0 3. (y-1)dx-xdy = 0 4. (2yxe + y + y)dx + (yxe" - xy-2x)dy=0
-
What is the difference between K strategist organisms?
-
How would you define the term "endemic" and its significance within a biological context?
-
Why is using the MoSCoW approach in prioritizing the user stories is so important?
-
Describe and discuss the various patterns of inheritance that the different human traits show? Which properties matter most strongly when we discuss these patterns, that may differ for distinct...
-
Find the sum of monoy that accumulates to $1936 59 at 5.7% compounded semi-annually in four years, ter months. The sum of money is S (Round to the nearest cent an needed Round all intermediate values...
-
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?
-
A candlestick chart is similar to a bar chart except that the candlestick chart: A. Represents upward movements in price with Xs. B. Also graphically shows the range of the periods highs and lows. C....
-
What considerations might encourage a market analyst to rely more on a top-down or bottom-up forecast of S&P 500 operating earnings?
-
Which of the following advantages listed by Ryan with respect to the earnings-based approach studied by Atkinson is most likely correct? The model A. Can be used for non-U.S. equity markets. B....
Study smarter with the SolutionInn App