Write a program that plays a word game with the user

Assignment Help JAVA Programming
Reference no: EM13339913

Write a program that plays a word game with the user. The program should ask the user to enter the following:

?His or her name
?His or her age
?The name of the city
?The name of the college
?A profession
?A type of animal
?A pet?s name

After the user has entered these items, the program should display the following story, inserting the user?s input into the appropriate locations:

There once was a person named NAME who lived in CITY. At the age of AGE, NAME went to college at COLLEGE. NAME  graduated and went to work as a PROFESSION. Then, NAME adopted a(n) ANIMAL named PETNAME. They both lived happily ever after!

 

Reference no: EM13339913

Questions Cloud

Write the definition of the function min : Add the function min to the class arrayListType to return the smallestelement of the list. Also, write the definition of the function min and a program to test this function.
What is the photons energy if e for the electron : Assume that the total energy E of an electron greatly exceeds its rest energy. If a photon has a wavelength equal to the de Broglie wavelength of the electron, what is the photon's energy
What is the magnitude of the parents acceleration : A 71 kg parent and a 19 kg child meet at the center of an ice rink. They place their hands together and push. what is the magnitude of the parent's acceleration
Calculate the de broglie wavelength of alpha particle : Calculate the de Broglie wavelength of a 4.6 MeV alpha particle emitted from an atomic nucleus whose diameter is approximately 1.6 x 10-14 m. Calculate its minimum kinetic energy according to the uncertainty principle.
Write a program that plays a word game with the user : Write a program that plays a word game with the user. The program should ask the user to enter the following.
What is the maximum enlargement : An enlarging camera has a maximum extension of 4 ft between the negtive and the paper. what is the maximum enlargement that can be made with this equipment
For how many values of theta will there be strong reflection : The planes of atoms in a cubic crystal lie parallel to the surface, 0.74 nm apart. X rays having wavelength 0.40 nm are directed at an angle theta to the surface.
How far is the car lifted : In a hydaulic lift the radius of the pistons are 1.75cm and 17.5cm. A car weighing 19.6kN is to be lifted by the force of the large piston. how far is the car lifted
Give a recursive definition of a singly linked list : Give a C++ code fragment that, given an×n matrix M of type float, replaces M with its transpose. Try to do this without the use of a temporary matrix.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Implement security so that all users can view the informatio

Implement security so that all users can view the information about the projects, but only authenticated users

  Create a class called scorelist according to the uml diagram

Create a class called ScoreList according to the UML diagram. This class will allow a user to enter up to 100 scores into an array.

  Multiple choice java programming questions

Determine which of the following may be a violation of information hiding if inserted for the comment above?

  A game of tic-tac-toe

A game of tic-tac-toe, two players (one the computer) take turns marking an available cell in a 3 X 3 grid (a two dimensional array) with their respective tokens (either and X or an O). When one player has placed three tokens in a horizontal

  Explain a gui interface using advanced java swing classes

Implement a threads and a GUI interface using advanced Java Swing classes. The project will be graded according the criteria for the final project

  What is server-side and client-side scripting?

1. What is Server-side and Client-side scripting? Explain the differences between server-side and client - side scripting languages. Please provide 3 advantages and disadvantages of each. Please provide applicable references in APA style

  Graphics program that draws 12 strings

Write a graphics program that draws 12 strings, one each for the 12 standard colors, besides Color.WHITE, each in its own color. Provide a class ColorNameViewer and a class ColorNameComponent.

  Create a class account that represents a banking account.

Create a class Account that represents a banking account.

  Point of sale terminal

a software implementation of a Point of Sale terminal at a typical store. The users of the system are the cashiers sitting at the sales terminals of the store. The users can use the system to manage sales items in the store, customer details and of c..

  Write java program to store employee id number

Use employee data file called employees.txt should comprise at least 5 employee records. Each record stores employee ID number (six digits) last name, first name, middle inital,gender(m or f).

  Create and code a program uses three parallel numeric array

Create and code a program that uses three parallel numeric arrays of size 6. The program searches one of the arrays and then displays the corresponding values from the other two arrays. The program should prompt the user to enter a ProductID. Valid P..

  Create to determine how much either joe or jim

What type of equation would you create to determine how much either Joe or Jim makes separately? What equation is needed in Java (ignoring the $ symbol)? What data type is needed need for this equation?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd