Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2008
    Location
    Singapore
    Posts
    24
    Rep Power
    0

    Default Can anyone briefy explain what does that mean?

    Can anyone please explain the theory behind these
    Attached Thumbnails Attached Thumbnails Can anyone briefy explain what does that mean?-task-1.jpg  
    Don Vito Corleone~I am gonna make you an offer you can't refuse

  2. #2
    Join Date
    Jan 2008
    Location
    Singapore
    Posts
    24
    Rep Power
    0

    Default

    keyboard integers is the 0 to 9 how to set subscript ?
    i only need help with the first part first coz i have no idea how to get a head start on this please any kind soul enlighten me.
    Don Vito Corleone~I am gonna make you an offer you can't refuse

  3. #3
    gibsonrocker800's Avatar
    gibsonrocker800 is offline Senior Member
    Join Date
    Nov 2007
    Location
    New York
    Posts
    143
    Rep Power
    0

    Default

    It's basically asking you to create a program which the user can enter numbers and you can perform various tests to it (ex: which numbers are even, which numbers are multiples of 3, etc);

    So, you've gotta learn about the following:
    loops
    Scanners
    arrays
    Object-Oriented ness (this isn't necessary, but o-o programming makes everything easier)

  4. #4
    Join Date
    Jan 2008
    Location
    Singapore
    Posts
    24
    Rep Power
    0

    Default

    hmm i am trying to do it now but it seems like i do not understand or should i say how to start i know what is an array and subscript should i do a table as the following

    subscript [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
    Array KB [0] [1] [2] [3] [4] [5] [6] [7] [8] [9]

    as there are only 0 to 9 integer on the keyboard
    so if:

    kb integers[I]

    initialize kb array[1..10] to zeroes?
    FOR I in range of 1 to 10
    ???

    i need someone to guide me haiz...
    Don Vito Corleone~I am gonna make you an offer you can't refuse

  5. #5
    gibsonrocker800's Avatar
    gibsonrocker800 is offline Senior Member
    Join Date
    Nov 2007
    Location
    New York
    Posts
    143
    Rep Power
    0

    Default

    Maybe i'm totally missing the point, but i have no idea where you're getting this subscript stuff from. It seems to me that you're supposed to make a program that asks the users for numbers and then it finds data based on these numbers.

  6. #6
    Join Date
    Jan 2008
    Location
    Singapore
    Posts
    24
    Rep Power
    0

    Default

    Ok for eg.

    ARRAYS:
    ========

    DEFINE 5 INDIVIDUAL VARIABLES AS MARK1, MARK2, MARK3, MARK4, MARK5

    USE ARRAYS TO DEFINE THE ABOVE GIVEN VARIABLES

    EXAMPLE:
    =========

    MARK[I], I IN RANGE OF 1 TO 5, I IS THE INDEX VALUE OR SUBSCRIPT, MARK IS A SUBSCRIPTED VARIABLE

    MARK[1] = 75
    MARK[2] = 80
    MARK[3] = 68
    MARK[4]= 98
    MARK[5]=89

    PSEUDOCODE EXAMPLE:
    ====================

    (1.) INITIALIZE MARKS[1..5] TO 0;
    (2.) FOR I IN RANGE OF 1 TO 5
    DO
    (3.) READ MARK
    (4.) MARKS[I] = MARK
    ENDDO
    (5.) FOR I IN RANGE OF 1 TO 5
    DO
    (6.) DISPLAY MARKS[I]
    (7.) ENDDO
    (8.) END

    something like this?
    Don Vito Corleone~I am gonna make you an offer you can't refuse

  7. #7
    gibsonrocker800's Avatar
    gibsonrocker800 is offline Senior Member
    Join Date
    Nov 2007
    Location
    New York
    Posts
    143
    Rep Power
    0

    Default

    Eh, i'm not sure, I'm not a pseudo-code kinda guy. I just code man. But i mean your pseudo looks okay to me. I can't really help you too much with pseudo-code, if you need to actually code it then i'll help lol.

Similar Threads

  1. Need Help Can anyone explain what this means
    By Clemenza1983 in forum New To Java
    Replies: 6
    Last Post: 02-16-2008, 03:13 AM
  2. May someone explain what these things means in Java
    By quickfingers in forum New To Java
    Replies: 2
    Last Post: 01-26-2008, 05:45 AM
  3. Iam new in Java Please explain to me
    By vinaytvijayan in forum AWT / Swing
    Replies: 1
    Last Post: 12-30-2007, 11:35 AM
  4. need to explain this code
    By reached in forum New To Java
    Replies: 3
    Last Post: 12-03-2007, 10:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •