Search:

Type: Posts; User: PhHein

Search: Search took 0.11 seconds.

  1. Replies
    11
    Views
    1,197

    [SOLVED] Re: Father of CompSci HS student needs help

    Ayup. That's correct.
  2. Replies
    11
    Views
    1,197

    [SOLVED] Re: Father of CompSci HS student needs help

    [-X
  3. Replies
    11
    Views
    1,197

    [SOLVED] Re: Father of CompSci HS student needs help

    No problems. And even if you were doing her assignments, she's likely to fail sooner or later. Anyway, have fun coding and feel free to ask questions.
  4. Replies
    11
    Views
    1,197

    [SOLVED] Re: Father of CompSci HS student needs help

    Just noticed, don't

    System.out.print("A. San Diego\n");

    but

    System.out.println("A. San Diego");
    System.out.println(); // <------------- empty line aka line feed
  5. Replies
    11
    Views
    1,197

    [SOLVED] Re: Father of CompSci HS student needs help

    I'd use a String for the input and use equalsIgnoreCase() to check the answer. You are using C which is an undeclared variable.
    Basically it works like this:


    System.out.print ("Enter your...
Results 1 to 5 of 5