Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help creating code from the task below, follow directions from the tasks and it will solve the code import java.util.Scanner; public class PigLatin {

Need help creating code from the task below, follow directions from the tasks and it will solve the code

image text in transcribed

import java.util.Scanner;

public class PigLatin { public static void main (String[] args){ //TODO: write this method }

private static String[] translate(String[] words){ //TODO: write this method }

private static int findFirstVowel(String s){ //TODO: write this method }

private static boolean isVowel(char c){ //TODO: write this method }

private static void print(String[] words){ //TODO: write this method } }

A 6.14 Java example: Domain names with methods 6.15 Lab 6c Due 25-Apr-17 Students: This content is controlled by your instructor, and is not zyBooks content. Direct questions or concerns about this content to your instructor. If you have any technical issues with the zyLab submission system, use the "Trouble with lab?" button at the bottom of the lab. Objective Using the String manipulation skills gained in the previous labs, you will create a modularized program that translates a phrase into Pig Latin by using methods to break up the task. Task Rules of Translation: If the word begins with a consonant, take the beginning consonants up until the first vowel and move them to the end of the word. Then append ay at the very end. (so Cricket would become icketcray If the word begins with a vowel, simply add ay to the end. (apple would become appleay) lfyis the first letter in the word, treat it as a consonant, otherwise it is used as a vowel. (Moung would become oungyay and system would become ystemsay Assume all input is lowercase and alphabetical (so don't worry about checking for casingumbers symbols) The main method should have as few lines code as possible, and the template has suggested method headers. Feel free to rename variables and methods in a way that makes sense for you, but keep the general format. ah

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions