java

This is a discussion on java within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Hi there? anyone good at java or know anything about it?? i need someone to start this problem for me ...

  1. #1
    Unregistered
    Guest

    java

    Hi there? anyone good at java or know anything about it??

    i need someone to start this problem for me please..i 'm not asking for a full complete program,

    the problem is as follows:

    i have to write a multiplication program in java, that will ask the user to input a starting number, such as 5. it will generate multiplication problems ranging from 5 X 1 to 5 X 1.

    For each problem the user will be prompted to enter the correct answer. The program should check her answer and should not let the user advance to the next question until the correct answer is given to the current question.

    Cheers,

    abbas

  2. #2
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    >anyone good at java or know anything about it??

    I've not been there, and haven't had it recommended as a holiday destination.

    If you mean java the programming langauage, try a java message board. They may have more tolerance for retards.

  3. #3
    Unregistered
    Guest
    Java is a lot like c++ only easier, assuming you want to do windowed programs that is. Apparently the command line stuff isnt as easy...

    But like the man says, try a java board!

  4. #4
    Unregistered
    Guest

    java

    could you please tell me where i can access the java boards..

    thanks

    abbas

  5. #5
    Registered User
    Join Date
    Jan 2002
    Posts
    559
    Truth is a malleable commodity - Dick Cheney

  6. #6
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    your question makes no sense. 5x1 to 5x1?

  7. #7
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    He/she means 5 X 1 to 5 X 5, I think. So if the user inputs the number N, then multiplication problems like

    1 x N
    2 x N
    3 x N
    ..
    N x N

    are asked and the user should give the answer. The question is asked again and again until the user gives the correct answer.

    To get you started:

    Code:
    public class hello
    {
        public static void main(String[] args)
        {
            String hello_world = "Hello world!";
    
            System.out.print (hello_world);
    
            System.exit (0);
        }
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C#, Java, C++
    By incognito in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 10-05-2004, 03:06 PM
  2. First Java Class at college
    By GanglyLamb in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 09-29-2004, 11:38 PM
  3. The Java language is being expanded
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 06-11-2004, 10:07 PM
  4. Java woes
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 07-06-2003, 01:37 AM
  5. C or Java as a first language
    By CorJava in forum A Brief History of Cprogramming.com
    Replies: 34
    Last Post: 10-23-2002, 06:12 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21