Project_06 - COMP 1210 Project 6: Number Guessing Due:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
COMP 1210 Project 6: Number Guessing Page 1 of 3 Due : Monday, March 5, 2012 by 11:59 PM Updated on 2/27/2012 (see red text below) Deliverables The following project files must be submitted to the “graded” assignment in Web-CAT by the due date and time specified above (see the Lab Guidelines for information on submitting project files). You should plan to start on the project not later than Wednesday in lab, and you should make sure that your files are successfully submitted to the “ungraded” assignment in Web-CAT during lab on Wednesday. Projects sent via e-mail past the deadline at 11:59 PM will not be accepted without a university- approved excuse. Files to submit to Web-CAT: Number.java NumberGuessingApp.java Specifications Overview: Design an application that plays a guessing game with numbers. The program should pick four different random numbers between 0 and 9 (inclusive) in a certain combination, and then repeatedly prompt the user to guess the combination of these four numbers. The user’s guess input must follow the format “# # # #” (four different numbers separated by one space ). For each guess, report to the user how many of the guessed numbers (out of the four) were totally right (i.e., both the number and position were correct) and how many of the guessed numbers were correct but in the wrong position. Continue accepting guesses until the user guesses correctly or until the user enters “key” or “end” to quit and see the answer. Count the number of guesses and report that value as part of the output that prefaces the guess as shown in the example below. Number.java
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/02/2012 for the course COMP 1210 taught by Professor Cross during the Winter '07 term at Auburn University.

Page1 / 3

Project_06 - COMP 1210 Project 6: Number Guessing Due:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online