Search:

Type: Posts; User: docthoi

Search: Search took 0.07 seconds.

  1. Replies
    13
    Views
    1,243

    Re: What is wrong with my code?

    I see

    Okay thank you, I will try that
  2. Replies
    13
    Views
    1,243

    Re: What is wrong with my code?

    "How would you describe the condition you want to test in the if statement in English?"
    If the input is larger than 2000 and that the bonus is larger than 400, then shows "Unacceptable ..."
    Because...
  3. Replies
    13
    Views
    1,243

    Re: What is wrong with my code?

    It says ". expected instead of this token" while highlighting two commas and a } sign

    Alright, thanks anyway
  4. Replies
    13
    Views
    1,243

    Re: What is wrong with my code?

    "What is the error message for the }?"
    It's clumped together in one error message, along with the other commas.

    I'm reading the link right now
  5. Replies
    13
    Views
    1,243

    Re: What is wrong with my code?

    "if (deposit>20000, bonus>400) "
    and
    "else if (deposit<=2000, bonus<=400) "

    oh and the "}" in the "} // CollegeSavings class " is reported as error as well

    I wanted to make two if statement...
  6. Replies
    13
    Views
    1,243

    Re: What is wrong with my code?

    import hsa.*;
    // The "CollegeSavings" class.
    public class CollegeSavings
    {
    public static void main (String[] args)
    {double deposit, bonus, output;
    Stdout.println("Please input...
  7. Replies
    13
    Views
    1,243

    What is wrong with my code?

    Here's the assignment I was given:
    The government introduces a new program of educational savings accounts. It adds a 20% bonus of whatever you contributed to the account up to a maximum of a $400...
Results 1 to 7 of 8