Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
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 02-14-2008, 05:56 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
Need Help Can anyone explain what this means
I have difficulty understanding this how should i layout?

In this Task, you should design the program logic using pseudo codes:

- Read integer data from keyboard and store the data in an array.
- List all the even numbers and the total of even number in the array.
- Show the total value of all the numbers in the array.
- Show the numbers that are multiple of 3.
- Show the toal value of every alternate numbers in the array, starting from first number, i.e. the first number + the third data + the fifth data +....
__________________
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 02-14-2008, 12:10 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 2,959
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
You are asking about pseudo code? If so,


Code:
Get user inputs, specified number of integers. int userInputs[number_of_integers]; int numberTotal = 0; int evenNumberTotal = 0; int patternTotal = 0; while(less than iterations of number_of_integers on each) { // Total of all numbers of the array numberTotal = numberTotal + userInputs[iterationIndexOne]; // Find the even number and there total if(userInputs[iterationIndexOne] mod 2 == 0) { display elemnt of userInputs[iterationIndexOne]; evenNumberTotal = evenNumberTotal + userInputs[iterationIndexOne]; } display total of even numbers evenNumberTotal; // Find the mutiple of 3 if(userInputs[iterationIndexOne] mod 3 == 0) { display elemnt of userInputs[iterationIndexOne]; } } while(less than iterations of number_of_integers by each) { patternTotal = patternTotal + userInputs[iterationIndexTwo]; }
may help you
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
(Close on September 4, 2008)

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 02-14-2008, 02:25 PM
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
Hi thanks but seriously i haven't get to know what is patterntotal. I am only a beginner in java now u show me all these i hardly understand i need explanation not direct answer but u been of great help thanks dude really appreciate it but now i still need to know why and how... haiz
__________________
Don Vito Corleone~I am gonna make you an offer you can't refuse
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 02-14-2008, 04:50 PM
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
What does index 1 and index 2 stands for? i still dun understand....
Please enlighten me thanks.
__________________
Don Vito Corleone~I am gonna make you an offer you can't refuse
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 02-15-2008, 02:04 PM
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
Eranga can please reply me thanks i need ur help badly
__________________
Don Vito Corleone~I am gonna make you an offer you can't refuse
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 02-16-2008, 04:11 AM
CaptainMorgan's Avatar
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 839
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
Quote:
Originally Posted by Clemenza1983 View Post
Hi thanks but seriously i haven't get to know what is patterntotal. I am only a beginner in java now u show me all these i hardly understand i need explanation not direct answer but u been of great help thanks dude really appreciate it but now i still need to know why and how... haiz
Your problem is found in just about every beginning book on Java. Where is your textbook? What does it say? Stop asking others to do your homework for you. Stop being lazy and read your textbook. Errangs assisted you- I think it's now up to you to figure it out from there. If you're still stuck- post your code and be specific about your updated issues. Otherwise - read your book.

Quote:
Eranga can please reply me thanks i need ur help badly
You need to be more patient than that. Most of us are here purely on a voluntary basis. We don't get paid for helping you- we do it because we want to. Understand that.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
to our beloved Java Forums!
(closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Got a little Capt'n in you? (drink responsibly)
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 02-16-2008, 04:13 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
I am sorry i understand sorry to keep asking question i am not looking for direct answer just wanna know how it works but i guess i should do my own research sorry about it.
__________________
Don Vito Corleone~I am gonna make you an offer you can't refuse
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
The Funny Pictures Thread(this means a lot of pictures...) joshua Jokes and Funny Things 9 07-10-2008 12:28 PM
Can anyone briefy explain what does that mean? Clemenza1983 New To Java 6 01-29-2008 08:05 AM
May someone explain what these things means in Java quickfingers New To Java 2 01-26-2008 06:45 AM
Iam new in Java Please explain to me vinaytvijayan AWT / Swing 1 12-30-2007 12:35 PM
need to explain this code reached New To Java 3 12-03-2007 11:01 PM


All times are GMT +3. The time now is 05:37 AM.


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