Answered step by step
Verified Expert Solution
Link Copied!

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

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

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

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions

Question

7. Be able to distinguish productive from destructive conflict.

Answered: 1 week ago

Question

What Is acidity?

Answered: 1 week ago

Question

Explain the principles of delegation

Answered: 1 week ago

Question

State the importance of motivation

Answered: 1 week ago

Question

Discuss the various steps involved in the process of planning

Answered: 1 week ago

Question

What are the challenges associated with tunneling in urban areas?

Answered: 1 week ago