Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions