Search:

Type: Posts; User: Rain_Maker

Search: Search took 0.09 seconds.

  1. Replies
    24
    Views
    1,554

    Re: Methods help????

    /**
    *
    * Gregory B Shavers Jr
    * CSC 225 - Online
    * Lab 6
    */

    import java.util.*;

    public class GuessingGame
  2. Replies
    24
    Views
    1,554

    Re: Methods help????

    Okay my HW assignment states that I need to create a guessing game. The computer is supposed to choose a number 1-100. And from that selection the player is supposed to guess that number. Is that...
  3. Replies
    24
    Views
    1,554

    Re: Methods help????

    Okay I turned in the assignment but I still wanted to do it the right way.

    Okay here is what is supposed to happen. The getmethod() is supposed to run a random number. After running a random...
  4. Replies
    24
    Views
    1,554

    Re: Methods help????

    The getGuess method runs a random number and then ask the user random guess.
  5. Replies
    24
    Views
    1,554

    Re: Methods help????

    Okay norm I resolved the issue....almost

    Here what we have




    /**
    *
    * Gregory B Shavers Jr
  6. Replies
    24
    Views
    1,554

    Re: Methods help????

    /**
    *
    * Gregory B Shavers Jr
    * CSC 225 - Online
    * Lab 6
    */

    import java.util.*;

    public class GuessingGame
  7. Replies
    24
    Views
    1,554

    Re: Methods help????

    Okay I fixed the guess method. But what about my output not showing.

    --- Update ---

    I want to let the user know he has the right output when he guesses the correct number.

    --- Update ---
    ...
  8. Replies
    24
    Views
    1,554

    Re: Methods help????

    Okay my application is almost done. I just need a little help with some debugging.



    /**
    *
    * Gregory B Shavers Jr
    * CSC 225 - Online
    * Lab 6
    */
  9. Replies
    24
    Views
    1,554

    Re: Methods help????

    Okay give me a min and let me look at this documentation. And I will get back to you.

    Thanks!
  10. Replies
    24
    Views
    1,554

    Re: Methods help????

    I kind understand what your saying. But methods are a little confusing to me. So are you saying when I call the method I should make sure that variable is a double.
  11. Replies
    24
    Views
    1,554

    Re: Methods help????

    Well my assignment states that I need to use a method to retrieve a double from a user and then evaluate that method in my processGuess method.

    --- Update ---

    Well not really a double but a...
  12. Replies
    24
    Views
    1,554

    Re: Methods help????

    Method getGuess in class GuessGame cannont be applied to given types;
    required double
    found: no arguments
    reason: actual and formal arguments list differ in length

    The operator that your...
  13. Replies
    24
    Views
    1,554

    Methods help????

    Okay I'm learning about methods for my class. I think I have a very good foundation, but I'm still an amateur. I have an assignment due tonight but I'm having trouble with it. Here is my...
Results 1 to 13 of 13