Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!