# Thread: Can anyone briefy explain what does that mean?

1. ## Can anyone briefy explain what does that mean?

Can anyone please explain the theory behind these

2. 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.

3. 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. 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...

5. 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. 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
(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?

7. 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.

#### Posting Permissions

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