java Gibberish: WHADAGAT DADAGID YADAGOU SADAGAY?? Input: say what? SADAGAY WHADAGAT? Translate Instructions: This assignment will involve
Fantastic news! We've Found the answer you've been seeking!
Question:
java
Transcribed Image Text:
Gibberish: WHADAGAT DADAGID YADAGOU SADAGAY?? Input: say what? SADAGAY WHADAGAT? Translate Instructions: This assignment will involve processing text to create a Gibberish translator. It will involve using loops and conditionals, as well as basic String methods. 1. Begin by creating a new project in Eclipse, and add the existing source-files. You will write all of your code into the GibberishGenerator class, inside the methods createWindow() and buttonPressed (). You should not modify the main() method in any way. I eat olives! 2. Complete the createWindow() method, setting up all graphical elements so that it looks similar to the example given above. It does not have to be identical, but it should feature a window with a title at the top and a light gray background. The text-field (input) at the top will allow the user to enter text, and the label (output) below it will eventually show the Gibberish version of what the user types. There will be a "Translate" button at the bottom, centered; in addition, there will be a couple other labels to indicate where to place input, and where the Gibberish will appear. (See the image above.) Note: when you create the input field and output label, do not re-declare those variables (they are already declared at the start of the class as instance variables). Instead, simply instantiate the objects that those variables will name, and give them their properties. Furthermore, when you create the window, use the Java JFrame class, not the Window class from earlier in the semester. You can find examples of the use of all the necessary classes in multiple labs and posted lab solutions. 3. Add code to the buttonPressed () method so that when pressed it reads in any user input from the input field and breaks it into pieces, looping over each separate "word" (where here this just means some chunk of text separated from the rest by white space). Test your code by having your loop use System.out.println() to display each word separately; if it is working correctly, then entering input I eat olives! will produce console output: Gibberish: WHADAGAT DADAGID YADAGOU SADAGAY?? Input: say what? SADAGAY WHADAGAT? Translate Instructions: This assignment will involve processing text to create a Gibberish translator. It will involve using loops and conditionals, as well as basic String methods. 1. Begin by creating a new project in Eclipse, and add the existing source-files. You will write all of your code into the GibberishGenerator class, inside the methods createWindow() and buttonPressed (). You should not modify the main() method in any way. I eat olives! 2. Complete the createWindow() method, setting up all graphical elements so that it looks similar to the example given above. It does not have to be identical, but it should feature a window with a title at the top and a light gray background. The text-field (input) at the top will allow the user to enter text, and the label (output) below it will eventually show the Gibberish version of what the user types. There will be a "Translate" button at the bottom, centered; in addition, there will be a couple other labels to indicate where to place input, and where the Gibberish will appear. (See the image above.) Note: when you create the input field and output label, do not re-declare those variables (they are already declared at the start of the class as instance variables). Instead, simply instantiate the objects that those variables will name, and give them their properties. Furthermore, when you create the window, use the Java JFrame class, not the Window class from earlier in the semester. You can find examples of the use of all the necessary classes in multiple labs and posted lab solutions. 3. Add code to the buttonPressed () method so that when pressed it reads in any user input from the input field and breaks it into pieces, looping over each separate "word" (where here this just means some chunk of text separated from the rest by white space). Test your code by having your loop use System.out.println() to display each word separately; if it is working correctly, then entering input I eat olives! will produce console output:
Expert Answer:
Answer rating: 100% (QA)
It looks like youve provided images related to a Java assignment that involves creating a Gibberish translator UI application and functionality Heres ... View the full answer
Related Book For
Posted Date:
Students also viewed these electrical engineering questions
-
Java is a high-level, class-based, object-oriented programming language designed to have as few implementation dependencies as possible. Design: James Gosling First appearance: May 23, 1995; 26 years...
-
Java Company earned net income of $85,000 during the year ended December 31, 2018. On December 15, Java declared the annual cash dividend on its 4% preferred stock (par value, $120,000) and a $0.25...
-
Java Hut leased a specialty expresso machine for a 10-year non-cancelable term. At the end of the 10-year term, Java Hut has four consecutive one-year renewal options. A replacement machine can be...
-
If the working papers correlating with this textbook are not used, omit Problem 2-5B. The following records of A-Aall Electronic Repair are presented in the working papers: Journal containing...
-
Calculate the cash dividend paid per share for each of the firms in the following table using their earnings per share and dividend payoutratio: Company Dividend Payout Ratio Earnings per Share...
-
In Figure point P is at perpendicular distance R = 2.00 cm from a very long straight wire carrying a current. The magnetic field B set up at point P is due to contributions from all the identical...
-
Johanna Marra and Eric Nazzaro began a romantic relationship in October 2013. That previous July, Nazzarro had purchased a duplex that he intended to renovate. Nazzarro rented out the top floor while...
-
Patriotic Enterprises makes flags. The companys new controller can find only the following partial information for the past two months: The current years predetermined overhead rate is 80 percent of...
-
Solving via linear equation No unread replies.No replies. A small country exports soybeans and flowers. Soybeans require 8 workers per acre, flowers require 12 workers per acre, and 100,000 workers...
-
A cylindrical specimen of aluminum having a diameter of 0.505 in. (12.8 mm) and a gauge length of 2.000 in. (50.800 mm) is pulled in tension. Use the load?elongation characteristics tabulated below...
-
A company has the following current assets: Cash, $10,000 Accounts Receivable, $70,000 Inventory, $20,000 The company also has current liabilities of $40,000. Calculate the companys current ratio and...
-
Information for Computing Product Cost Description Amount Direct labor 20,000 Office supplies used 2,500 Direct materials used in production 35,000 Indirect factory labor (factory janitors) 4,500...
-
Evaluate. 10 X dx 10 X dx =
-
on January 2 year one Adam Coe purchased 10000 shares a mill corpse common stock for $40 a share on December 31 year one the market price of stock was $35 a share on December 28 year two I sold 8000...
-
(1 point) The equation x + 2x-9= 0 has two solutions A and B where A
-
A bond currently trades at $1088 on the secondary market. The bond has 6 years until maturity and pays an annual coupon at 5% of face value. The face value of the bond is $1,000. What is the coupon...
-
Find the value of (-1+3i)61 261 Enter your answer symbolically, as in these examples if your answer is a + bi, then enter a,b in the answer box
-
Activator rod AB exerts on crank BCD a force P directed along line AB. Knowing that P must have a 100-N component perpendicular to arm BC of the crank, determine (a) The magnitude of the force P, (b)...
-
Which of a database files properties determines if and when the file is copied to the projects bin\Debug folder? a. Copy to Debug b. Copy to Output c. Copy to Output Directory d. Copy to bin\Debug
-
Open the VB2017\Chap02\FixIt Solution\FixIt Solution.sln file. If necessary, open the designer window. Start the application. Test the tab order and the access keys. End the application and then fix...
-
Which of the following properties stores the index of the item selected in a list box? a. Index b. SelectedIndex c. Selection d. SelectionIndex
-
What is the current status of the Sarbanes-Oxley Act? What do executives think of it now? What impact has it had?
-
Hannah Toberman had enjoyed her engineering job at Allstar Electronics, but she was beginning to grow restless. Most of her work for the past 5 years had involved designing minor adjustments to...
-
Most entrepreneurs use their own savings or borrow from family and friends to launch a start-up. How much capital could you possibly raise?
Study smarter with the SolutionInn App