Questions from Starting Out With Java


Q: Write an application that determines whether a phrase entered by the user

Write an application that determines whether a phrase entered by the user is a palindrome. A palindrome is a phrase that reads the same backward and forward without regarding capitalization or punctua...

See Answer

Q: Create a TaxReturn class with fields that hold a taxpayer’s Social Security

Create a TaxReturn class with fields that hold a taxpayer’s Social Security number, last name, first name, street address, city, state, zip code, annual income, marital status, and t...

See Answer

Q: Write an application that prompts the user for three first names and

Write an application that prompts the user for three first names and concatenates them in every possible two name combination so that new parents can easily compare them to find the most pleasing baby...

See Answer

Q: Create a program that contains a String that holds your favorite inspirational

Create a program that contains a String that holds your favorite inspirational quote and display the total number of spaces contained in the String. Save the file as CountSpaces.java. b. Write an appl...

See Answer

Q: Create a Card class that holds a suit and value for each

Create a Card class that holds a suit and value for each Card object. Save the file as Card.java. b. Create an abstract CardGame class similar to the one described in this chapter. The class contains...

See Answer

Q: Write an application that prompts the user for a password that contains

Write an application that prompts the user for a password that contains at least two uppercase letters, at least three lowercase letters, and at least one digit. Continually reprompt the user until a...

See Answer

Q: Write an application that counts the words in a String entered by

Write an application that counts the words in a String entered by a user. Words are separated by any combination of spaces, periods, commas, semicolons, question marks, exclamation points, or dashes....

See Answer

Q: Write an application that accepts three Strings from the user and,

Write an application that accepts three Strings from the user and, without regard to case, appropriately displays a message that indicates whether the Strings were entered in alphabetical order. Save...

See Answer

Q: Three-letter acronyms are common in the business world. For

Three-letter acronyms are common in the business world. For example, in Java you use the IDE (Integrated Development Environment) in the JDK (Java Development Kit) to write programs used by the JVM (J...

See Answer

Q: Write an application that accepts a word from a user and converts

Write an application that accepts a word from a user and converts it to Pig Latin. If a word starts with a consonant, the Pig Latin version removes all consonants from the beginning of the word and pl...

See Answer