Answered step by step
Verified Expert Solution
Question
1 Approved Answer
If you have younger brothers or sisters, they may have watched Phineas and Ferb on the Disney Channel. In one episode, Phineas and Ferb decide
If you have younger brothers or sisters, they may have watched Phineas and Ferb on the Disney Channel. In one episode, Phineas and Ferb decide to create their own language, Ferb Latin. Write a program that translates a first name and a last name stored in string variables called first and last to to Ferb Latin using the following rules: If the length of the name is less than three letters, the name is not changed. If the length of the name is three or more letters, move the first letter to the end and add "erb" Output the new name to the screen. The first letter of both the first and last name should be capitalized. All other letters should be lowercase. Think about how you can use the substring, toLowerCase, and toUpperCase methods to create the new strings. Here are two examples: first = "Justin"; last = "Bieber"; Your name in Ferb Latin is Ustinjerb leberberb first = "Ed"; last = "Sullivan"; Your name in Ferb Latin is Ed Ullivanserb Test your program with several different names to make sure it works
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started