Question: Starting Code: /* Programmer: Date: Project: Lab 3.6 Piglatin File Name: Piglatin.java Program Description: Converts a given word into piglatin. */ import java.util.*; public class

 Starting Code: /* Programmer: Date: Project: Lab 3.6 Piglatin File Name:
Starting Code:

/* Programmer:

Date:

Project: Lab 3.6 Piglatin

File Name: Piglatin.java

Program Description: Converts a given word into piglatin.

*/

import java.util.*;

public class Piglatin{

public static void main( String[] args ){

Scanner keyboard = new Scanner( System.in );

}

}

Lab 3.6- Piglatin The goal of this lab is to translate a given word into piglatin. The following rules should be used to convert the word to piglatin: If the word begins with a vowel, you simply add the ending "way" to the end of the word. For example, indian in piglatin is indianway. - To translate words that begin with a consonant (or multiple consonants) into piglatin, you must remove all the beginning consonants until you get to a vowel. Then move the removed consonants to the end of the word along with the ending "ay". So, china in piglatin is inachay, school in piglatin is oolschay, and cat in piglatin is atcay. To complete this lab, write a class called Piglatin that completes the following tasks. 1. Prompt the user to enter a word, and store the given word. 2. Determines the location of the first vowel (a, e, i, o, or u) in the word 3. Converts the word to piglatin using the rules above. 4. Displays a message containing the original word and the translated word similar to original word translated in to piglatin is translated word Save the program as Piglatin.java. Ensure the following test data work correctly. Input a word: orange orange translated into piglatin is orangeway Input a word: dog dog translated into piglatin is ogday Input a word: school school translated into piglatin is oolschay 1of 1

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!