CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Strobe

Search: Search took 0.02 seconds.

  1. Replies
    43
    Views
    24,804

    Re: Bagels(fermi,pico,bagels) code help

    Hello everyone i'm back again. I found another problem with my code and i need help. See my program does everything that you ask of it except that if you enter 3 digits and none match at the...
  2. Replies
    43
    Views
    24,804

    Re: Bagels(fermi,pico,bagels) code help

    I Finally finished the program. I would like to thank all of you for your help.
  3. Replies
    43
    Views
    24,804

    Re: Bagels(fermi,pico,bagels) code help

    I'm having a problem with my code and would really appreciate any assistance that is given. Here is an example of the problem i'm having :
    Let say my secNum = 107
    user enters= 701(it prints out...
  4. Replies
    43
    Views
    24,804

    Re: Bagels(fermi,pico,bagels) code help

    thank you for your help i'm gonna take what you told me and try to fix my code.Again than you very much
  5. Replies
    43
    Views
    24,804

    Re: Bagels(fermi,pico,bagels) code help

    public void playGame()
    {
    Scanner input = new Scanner(System.in);
    System.out.print("Want to play? " + "Type Y for Yes or N for No and press [Enter]: ") ;
    String answer =...
  6. Replies
    43
    Views
    24,804

    Re: Bagels(fermi,pico,bagels) code help

    I got the code tags right.
  7. Replies
    43
    Views
    24,804

    Re: Bagels(fermi,pico,bagels) code help

    i apologize for not having followed your directions but i guess i'm kinda slow . The game just keeps on looping instead of printing out my would you like to play again message when you win or get...
  8. Replies
    43
    Views
    24,804

    Re: Bagels(fermi,pico,bagels) code help

    thank you so much for the help pete. And to everyone else Sorry about the code tags not trying to get on anyone's bad side i'll read that explanation on how to do it again do you put these on java...
  9. Replies
    43
    Views
    24,804

    Re: Bagels(fermi,pico,bagels) code help

    Why is this method giving me a message unexpected type?It's pointing at my while statement.


    public void playGame()
    {
    Scanner input = new Scanner(System.in);
    System.out.print("Want...
  10. Replies
    43
    Views
    24,804

    Re: Bagels(fermi,pico,bagels) code help

    How do i go about making the program so that when a user is aked if he would like to play again Yes or No, If the user types Yes the game continues if NO the game ends?
  11. Replies
    43
    Views
    24,804

    Re: Bagels(fermi,pico,bagels) code help

    i'm stuck, these are the things i have accomplished:

    generate random number (no digits repeat)

    get user's guess(no digits repeat or tryagain message)

    evaluate guess( i get wether...
  12. Replies
    43
    Views
    24,804

    Re: Bagels(fermi,pico,bagels) code help

    First, i would like to tell you thank you very much for your help. I took your advice and added some code that rejected entries with duplicate digits,now it works good for everything except when i...
  13. Replies
    43
    Views
    24,804

    Re: Bagels(fermi,pico,bagels) code help

    thanks for tips
  14. Replies
    43
    Views
    24,804

    Re: Bagels(fermi,pico,bagels) code help

    this is my code now does everything except ask players if they want to quit or play again and keep track of how many tries it takes to win.


    import java.util.Random ;
    import java.util.Scanner ;...
  15. Replies
    43
    Views
    24,804

    Re: Bagels(fermi,pico,bagels) code help

    i took your suggestions i put the playguess input into getGuess(). Then in the main i put this:

    public class BagelsTest
    {
    public static void main(String [] args)
    {

    ...
  16. Replies
    43
    Views
    24,804

    Re: Bagels(fermi,pico,bagels) code help

    thanks alot for every ones assistance i'm going to try your suggestions and i'll let you guys know how it goes. Again i really appreciate your input.
  17. Replies
    43
    Views
    24,804

    Re: Bagels(fermi,pico,bagels) code help

    when i compile the program and plug in any number all it says is process complete. I print out the secretnumber just to see what happens if i input the same exact number and it just says process...
  18. Replies
    43
    Views
    24,804

    Re: Bagels(fermi,pico,bagels) code help

    this is what i got so far:

    import java.util.Random ;

    public class Bagels
    {
    // instance variables

    private int secNum ; //
    private int playGuess ; //
  19. Replies
    43
    Views
    24,804

    Bagels(fermi,pico,bagels) code plz help

    I need help with this assignment:

    Programming Assignment #7

    "Repetition and Decision-Making"


    I. The Game of Bagels

    This assignment is to write an interactive Java program to play the...
Results 1 to 19 of 20





Click Here to Expand Forum to Full Width

Featured