Write a Java program that inputs two String Variables, first and last, which the
ID: 441226 • Letter: W
Question
Write a Java program that inputs two String Variables, first and last, which the user should enter with their name. First, convert both strings to all lowercase. Your program should create a new string that contains the full name in pig latin with the first letter Capitalized for the first and last name. Use only pig latin rule of moving the first letter to the end of the word and adding "ay". Output the pig latin name to screen. Use the substring and toUpperCase methods to construct the new name. For example, a possible sample dialog might be Enter your first name : Abraham Enter your last name: Lincoln Your Pig Latin name is Brahamaay Incolnlay Submit the program and the output for your name and one other name.Explanation / Answer
Brahamaay Incolnlay
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.