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 seems like youre working on a Gibberish translator program in Java I can help you out with that L... 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...
-
Suppose equilibrium price in a market is $5, and then a price ceiling of $3 is imposed. Assume (as in the chapter) that those who value the product the mostare able to buy whatever quantity is...
-
Given the code 300C02040000099806040A05030E, decode it using BER.
-
Depletion is calculated in a manner similar to which depreciation method? a. Accelerated method b. Straight-line method c. Units-of-production method d. Double-declining-balance method
-
Honest Abes Auto Supply distributes new and used automobile parts to local dealers throughout the Northeast. Honest Abes credit terms are n/30. As of the end of business on July 31, the following...
-
Questions 2 a) Suppose, you have deposited $40000, and you will get $140000 back after 8 years. What interest rate will you earn from this investment? b) How long will it take for $80000 to become...
-
Ben Tools, Inc.s comparative balance sheets for December 31, 2014 and 2013, follow. During 2014, the company had net income of $96,000 and building and equipment depreciation expenses of $80,000 and...
-
HASF Company provides the following data for 2010 Raw material 12,000 13,500 Work in process 15,100 17,600 Finished goods 19,500 21,200 Cost of goods manufactured 151,700 Direct labor cost 50,000 FOH...
-
1. Research recent developments involving this case. Summarize these developments in a bullet format. 2. Suppose that a large investment firm had approximately 10 percent of its total assets invested...
-
what ways does the Harlem Renaissance reflect a convergence of cultural, artistic, and political movements, and how do its key literary works engage with themes of identity, resistance, and...
-
Need a screenshot as well in Eclipse please In this task, you will experiment with stack data structure and files. Launch BlueJ (or Eclipse) and create a new project and name it Task1 and save it in...
-
Sunrise Accounting provides basic tax services and "rent-a-controller" accounting services. Sunrise has identified three activity pools, the related costs per pool, the cost driver for each pool, and...
-
The static budget sales revenue is $79000 and the flexible budget sales revenue is $82000. If the actual sales price is $5 and the budgeted sales price is $5.50, what is the sales volume variance?
-
Five fishermen live in a village and have no other employment or income-earning possibilities besides fishing. They each own a boat that is suitable for fishing but does not have any resale value....
-
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
-
Name four disruptive business models and describe what they offer to their customers.
-
How is IT contributing to the success of the on-demand and shared economies?
-
What are the key strategic and tactical questions that determine an organizations profitability and management performance?
Study smarter with the SolutionInn App