Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-29-2008, 07:22 AM
Clemenza1983's Avatar
Member
 
Join Date: Jan 2008
Location: Singapore
Posts: 24
Clemenza1983 is on a distinguished road
Send a message via MSN to Clemenza1983
Can anyone briefy explain what does that mean?
Can anyone please explain the theory behind these
Attached Images
File Type: jpg Task 1.JPG (19.1 KB, 1 views)
__________________
Don Vito Corleone~I am gonna make you an offer you can't refuse
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-29-2008, 07:24 AM
Clemenza1983's Avatar
Member
 
Join Date: Jan 2008
Location: Singapore
Posts: 24
Clemenza1983 is on a distinguished road
Send a message via MSN to Clemenza1983
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
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 01-29-2008, 08:25 AM
gibsonrocker800's Avatar
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 143
gibsonrocker800 is on a distinguished road
Send a message via AIM to gibsonrocker800
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)
__________________
//Haha javac, can't see me now, can ya?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 01-29-2008, 08:34 AM
Clemenza1983's Avatar
Member
 
Join Date: Jan 2008
Location: Singapore
Posts: 24
Clemenza1983 is on a distinguished road
Send a message via MSN to Clemenza1983
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
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 01-29-2008, 08:39 AM
gibsonrocker800's Avatar
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 143
gibsonrocker800 is on a distinguished road
Send a message via AIM to gibsonrocker800
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.
__________________
//Haha javac, can't see me now, can ya?
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 01-29-2008, 08:47 AM
Clemenza1983's Avatar
Member
 
Join Date: Jan 2008
Location: Singapore
Posts: 24
Clemenza1983 is on a distinguished road
Send a message via MSN to Clemenza1983
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
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 01-29-2008, 09:05 AM
gibsonrocker800's Avatar
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 143
gibsonrocker800 is on a distinguished road
Send a message via AIM to gibsonrocker800
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.
__________________
//Haha javac, can't see me now, can ya?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help Can anyone explain what this means Clemenza1983 New To Java 6 02-16-2008 05:13 AM
May someone explain what these things means in Java quickfingers New To Java 2 01-26-2008 07:45 AM
Iam new in Java Please explain to me vinaytvijayan AWT / Swing 1 12-30-2007 01:35 PM
need to explain this code reached New To Java 3 12-04-2007 12:01 AM


All times are GMT +3. The time now is 02:29 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org