{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

Info icon This 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.
Image of page 1

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern