Programming : Java-Guessing Number Game

Java-Guessing Number Game


For this assignment you will write a program which will allow a person to play a number guessing game against the computer. This section specifies the required functionality of the program. Only a text interface is required for this program; however, more marks will be gained for a game that is easy to follow with clear information/error messages to the player.

The aim of Gue55ing Gameis for a person and the computer to compete against other to correctly guess a hidden number.

A game consists of four rounds. For each round a number between 1 and 100 (inclusive) is randomly generated and the players (person and computer) take turns to guess the number. The round ends when the correct guess is given or each player has had three guesses.

If a player guesses the number correctly then they are awarded points according to how many attempts were taken to guess the number. If the round ends without either player guessing correctly then the points are awarded to each player according to how close they were to the hidden number.

At the end of the four rounds the player with the highest cumulative score wins the game.

Answers

Related Questions

Discussion: Classifying Decision Situations...

  Those who cannot remember the past, are condemned to repeat it.—George Santyana, The Life of Reason: Introduction and Reason in Common Sense Th...

Needs to be complete by 8:30 pm...

Find a recent news article on Foreign Direct Investment on the internet. Post the URL along with a 400-500 word summary comment. The comment must draw...

Discussion...

The term liberalism, when applied to governments, is very different from the term liberal in America. Where liberalism implies a limited government, h...

####Law Tutors Please##### Criminal Process questi...

Need questions answered using general knowledge. They are discussion questions. No more than 60-80 words per question  1What constitutes a lawful ar...

govt assignment...

You are to write a current event paper, approximately 750 words in length, consisting of a summary and analysis of a current event having to do with A...

Construction Research Paper...

Unit VII Research Paper OSHA has identified four categories of hazards that account for more than 50% of all construction fatalities:   Falls—...

Logical Framework...

Based upon your MindMap and reflections Journal, apply the process of Strategic Project Management to the talent management issue/challenge you descri...

75-150 words. Need in two hours...

Select a company that you know (or can find) something about. List one aspect of that company that has determined its structure. Describe the company...

5 to 7 slide power point with 200 words per slide...

Planned change management programs that are attempting to make large-system cultural changes in an organization are among the most difficult to manage...

letter of recommendation...

Your task is to request a letter of recommendation from the instructor of this course. Assume your request is being made one year from now, and that t...

history paper...

PLAG FREE AND APA STYLE Students will write an essay, 500-750 words in length, on a topic selected from the list below. The purpose of the project is...

Discussion 2...

Progressive Case Study: Forming Your TeamWRITE A DISCUSSION POST AT LEAST 150 WORDS  The development of a project team requires planning and conside...

essays...

Greetings, I have to papers to do:  1- Answer the following question. Use Times New Roman 12 to write three to four, double-space pageswrite a sho...

DQ...

  Draft a response to each of the bulleted questions below. Each question must have its own response and have a minimum of 50 words. 1.      ...

Prepare a memo as the CFO of the company Murphy Pa...

Prepare a memo as the CFO of the company. The memo should be directed to the CEO and the Players Associations answering the two questions.The memo sho...

Reseacher paper...

For this assignment, you will pull together the information from your Unit II and Unit IV assignments to use when writing your final research paper. ...

The Trouble with boys paper 1100-1400 words, APA...

 The statement below is what the paper is based on. I also attached the grading rubric. The Trouble with Boys "Educators are searching for new wa...

APA...

http://judge.mhhe.com/mm.html   - once you click on link the video in question is #2 - Religious Discrimination - Dress Code Flips Burger Joint.This...

history paper...

plag free and APA style.  Students will write an essay, 500-750 words in length, on a topic selected from the list below. The purpose of the project...

Need Hum/176 Effects of Advertising presentation d...

Choose a product or service from these examples:Fast foodClass of consumer productPersonal careAutomobileFind examples (online, in print, or on TV or...

Any Takers 4...

  Draft a response to each of the bulleted questions below. Each question must have its own response. Compute the price of a 3.8 percent coupon bon...

Expository Essay Final...

Revise your 1000-1500-word expository essay about a topic of your choice in the style described within Units VI and VII.   Purpose: Throughout Units...

Need 3 questions answered...

All sources must be referenced and each question must be 150+ words. Due at 11pm EST which is basically 7 hours from now..if you cannot do by then, do...

MKTG 420 Salesmenship All Quizzes Week 2,4,6 Devry...

MKTG 420 Salesmanship All Quizzes  Week 2 QuizQuestion: (TCO 1) Which of the following are considered to represent some key customer changes occurr...

If you didn't find the right answer

Ask Your Questions, We'll notify you once someone answers it