Question: Java. I have problem with the name of the city and state part. Write a program that asks the user to enter his/her first name,
Write a program that asks the user to enter his/her first name, last name, address, city, state, age, and annual income. The program should output the following: Last name, first name The initials The number of characters in the city name The name of the city and state in all uppercase letters The name of the city and state in all lowercase letters - The age - The annual income Sample Run: Please enter your first name: John Please enter your last name: Doe Please enter your street address: 123 Some Street Please enter your city: Rochester Please enter your state: MN Please enter youE annua1 income: 43678.90 Please enter your annual income: 45678.90 User Information: Your name (last, first): Doe, John Your Initials: JD Characters in city name: 9 User Location (uppercase) ROCHESTER, MN User Location (lowercase): rochester, mn Your age: 21 Your annual income: $45678.90
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
