Questions from Starting Out With Java


Q: Create a guessing game called “Does It Have Legs?”, in

Create a guessing game called “Does It Have Legs?”, in which you think of an animal and the computer tries to guess what it is. The game continually becomes “smarter” as you play because you teach it...

See Answer

Q: Create a Tic Tac Toe game. In this game, two

Create a Tic Tac Toe game. In this game, two players alternate placing Xs and Os into a grid until one player has three matching symbols in a row, horizontally, vertically, or diagonally. Create a gam...

See Answer

Q: Create a Die class that you can use to instantiate objects that

Create a Die class that you can use to instantiate objects that each hold a value from 1 through 6. The field that holds the value of the Die should be protected, which will allow a child class to acc...

See Answer

Q: Create an abstract Alien class. Include at least three protected data

Create an abstract Alien class. Include at least three protected data members of your choice, such as the number of eyes the Alien has. Include a constructor that requires a value for each data field...

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: Create an application that generates a random integer for a player to

Create an application that generates a random integer for a player to guess. When the player’s guess is not entered as an integer, catch the Exception that is thrown and allow the player to try again....

See Answer

Q: Create a class that contains an array of 10 multiple-choice

Create a class that contains an array of 10 multiple-choice questions to which the user is required to respond with an A, B, or C. Display an error message if the user enters a character other than A,...

See Answer

Q: In several Game Zone assignments earlier in this course, you created

In several Game Zone assignments earlier in this course, you created games similar to Hangman in which the user guesses a secret phrase by selecting a series of letters. These versions had limited app...

See Answer

Q: Create a multiple-choice quiz on any topic. Include at

Create a multiple-choice quiz on any topic. Include at least 10 questions. Store the player’s highest score from any previous game in a file, and display the previous high score at the start of each n...

See Answer

Q: Use a text editor to create a comma-delimited file of

Use a text editor to create a comma-delimited file of user IDs and passwords. Save the file as GamePlayers.txt. b. Revise any one of the games you have created throughout this course to use the file G...

See Answer