Generate a random 5 digit number as a string

Assignment Help JAVA Programming
Reference no: EM131591806

develop a number guessing game. The game program should:

Generate a random, 5 digit number as a string.

The player needs to try to guess this 5 digit number.

The program should provide feedback to the player letting them know if they got any of the digits correct, using the Feedback Key (or hints) below:1 = indicates Right Number, Right Place.2 = indicates Right Number, Wrong Place.0 = indicates Wrong Number.For example:
If the computer program generates 12345 as the random number.

The player needs to make guesses in order to figure out what the secret, random number is. If the player guesses 11235, the computer should respond with the feedback code of: 10221.

Repeat step 2 and 3 until the player guesses the whole 5 digit number correctly (or, you can allow the player to do 10, 15, 20 tries).

If the player guesses it correctly, display the message "You guessed it correctly!" If the player doesn't guess it within the limited number of tries, display the message "You couldn't guess it. Game over."

Reference no: EM131591806

Questions Cloud

Discuss the statistics on workplace violence : Discuss the statistics on workplace violence. Describe environmental designs that can reduce workplace violence.
What advantages or disadvantages of methods in nursing study : What advantages or disadvantages do you see in using both types of methods in a nursing study
Describe the challenges of succession planning : Describe the challenges of succession planning. Discuss the statistics on succession planning.
What is walter annualized holding period return : Assume that bond prices change instantaneously to reflect the new interest rate. What is Walter’s annualized holding period return?
Generate a random 5 digit number as a string : Generate a random, 5 digit number as a string - Repeat step 2 and 3 until the player guesses the whole 5 digit number correctly
Prepare income statement in the contribution margin format : Case Hardware sells tiling grout among other products. Using the given information, prepare an Income Statement in the Contribution Margin format
What the difference between positions and interests : What the difference between positions and interests? If in a recruitment negotiation, where a candidate is being offered a job and is negotiating employment.
Develop a listing of new hiv-aids educational strategies : Develop a listing of new HIV/AIDS educational strategies an agency can use in a general community. Be creative and come up with innovative ideas.
Discuss leadership and communication scenario : What communication strategies are associated with effective leadership

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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