Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions

Question

What are some ways to resolve a conflict of interest?

Answered: 1 week ago

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago