Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create 3 java variables, an int(age), a double(gpa), and a String(homeTown). Ask the user to input his or her home town and do the following
Create 3 java variables, an int(age), a double(gpa), and a String(homeTown).
Ask the user to input his or her home town and do the following with the home town:
Print a message welcoming the person from their home town.
Capitalize (upperCase()) all letters in the home town and print it again. hint: ( upperTown = homeTown.toUpperCase(); )
print out the number of letters in the home town. hint: (int len=homeTown.length();)
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