Search:

Type: Posts; User: Norm

Search: Search took 0.08 seconds.

  1. Thread: car program

    by Norm
    Replies
    10
    Views
    2,377

    Re: car program

    You have a scope problem setting the value of nova inside of a method when nova is defined as a local variable or argument to the method. When the method exits, all of the local variables are...
  2. Thread: car program

    by Norm
    Replies
    10
    Views
    2,377

    Re: car program

    Can you copy the console window's contents and paste it here showing your input the the program's output?

    On windows: To copy the contents of the command prompt window:
    Click on Icon in upper...
  3. Thread: car program

    by Norm
    Replies
    10
    Views
    2,377

    Re: car program

    Add a println() statement to print out the value of nova so you can see what the computer sees.
    Put the println at the place where you think the code thinks its a 1.

    Where is the value supposed...
  4. Thread: car program

    by Norm
    Replies
    10
    Views
    2,377

    Re: car program

    Do the code one part at a time. Write the code for the first part, compile it, fix the errors and test it.
    The steps for the first part:
    ask for input
    get input
    if input not a 1 return an...
  5. Thread: car program

    by Norm
    Replies
    10
    Views
    2,377

    Re: car program

    What specific questions do you have?
Results 1 to 5 of 5