Question: Write a program in Java Language. Write a short application, FunnyName, that prompts the user for their full name, and performs some funny manipulations. For
Write a program in Java Language.

Write a short application, FunnyName, that prompts the user for their full name, and performs some funny manipulations. For input, use scan.nextline() to read in an entire string including spaces (since scan.next() inputs only a single word). Use the String methods .toUpperCase(), .toLowerCase(), and .replace(), to display the name in three (3) ways, 1) as lowercase 2) as UPPERCASE 3) as UPPERCASE, but also replacing all "a" as "@", and " e " as " #, and " i " as "\%" -- if not in the name, there are no changes, of course (refer to examples in Chapter 3 StringMutation example application) Example runs (user input shown in highlight): What is your name? Bob Q. Smith Name fun: bob q. smith and BOB Q. SMITH and BOB Q. SM\%TH What is your name? Luke Skywalker Name fun: luke skywalker and LUKE SKYWALKER and LUK\# SKYW@LK\#R What is your name? Dr. Stephen Strange Name fun: dr. stephen strange and DR. STEPHEN STRANGE and DR. ST\#PH\#N STR@NG\# What is your name? Aa Ee Ii Name fun: aa ee ii and AA EE II and @@ \#\# \%\% What is your name
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
