Question: Hello, Can you help me solve this Java question plz, thx! For this assignment, your job is to create a program that reads in multiple

Hello, Can you help me solve this Java question plz, thx! Forthis assignment, your job is to create a program that reads inHello, Can you help me solve this Java question plz, thx!

For this assignment, your job is to create a program that reads in multiple lines of text, and then produces the translation of that text into the English language variant known as "piglatin". Objectives: 1. Employ a data structure to store strings of text and use it to produce a report. 2. Write helper methods to support a somewhat complex operation. 3. Be able to write a class definition that works according to a specification. 4. Gain experience developing code in an incremental fashion. Pig latin works this way: if a word begins with a vowel (a-e-io-u), then "ay" is added to the end of the word (so "idle" 'idleay", and "often" "oftenay"); on the other hand, if a word begins with a consonant, then the first letter is removed, and is placed at the end of the word, followed by "ay" so "month "onthmay", and "castle" "astlecay The PigDriver class reads in multiple lines of text, ending finally with two carriage returns. At each line entered, the pigconvert method in your PigLatin class is called to convert that string to pig latin form. After the reading segment ends, your PigLatin class should then print the pig latin translation of the input text- the pigReport method. As a simplification, report the translation with no punctuation, and in all lower case. Below we give you the driver (the PigDriver class). Your job is to write the Piglatin class so that PigDriver works appropriately. import java util. public class PigDriver{ public static void main(String args) Scanner scan new Scanner (System.in String t Piglatin p new Piglatin while(t length >0){ t scan next Line t toLowerCase p. pig Convert (t); p.pigReport On this input: Now is the time for all good and I mean very good nen and women to visit their grandmothers The following output was produced: own ay isay hetay imetay orfay allay oodgay anday iay eanmay eryvay oodgay enmay anday omenway otay isitvay heirtay randmothersgay

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!