BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help!!!

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Java
View previous topic :: View next topic  
Author Message
Aghost.temp
Guest





PostPosted: Mon Aug 16, 2004 11:02 am    Post subject: Help!!! Reply with quote



Hi,

Would anyone help me with the below

1).
a). Using a for loop write a program to display the numbers 1 to 10
inclusive as follows;

1
2
3
etc...

Ensure your program is as efficient as possible.

b). Modify the above program to se an if statement to display the
messasge "Even" next to all even
numbers and the message "Odd" against all odd numbers.

c). Repeat the above stages using while loops and do..while loops

2).

a). Use an array to store the cumulative total for each number, i.e

Number Cumulative Score
1 1
2 3
3 6
4 10
5 15

b). Modify the program to display all the numbers up to a cumulative
score of 100

3). Wire a method to calculate the cube (x*x*x) of each number an display
the answer to the last screen.


Thanks




Back to top
Inverno
Guest





PostPosted: Thu Sep 02, 2004 11:38 am    Post subject: Re: Help!!! Reply with quote




"Aghost.temp" <thusislife (AT) thusislifedesigns (DOT) com> ha scritto nel messaggio
news:nv0Uc.203$uQ6.188 (AT) newsfe5-gui (DOT) ntli.net...
Quote:
Hi,

Would anyone help me with the below

1).
a). Using a for loop write a program to display the numbers 1 to
10
inclusive as follows;

1
2
3
etc...

Ensure your program is as efficient as possible.

b). Modify the above program to se an if statement to display the
messasge "Even" next to all even
numbers and the message "Odd" against all odd numbers.

c). Repeat the above stages using while loops and do..while loops

2).

a). Use an array to store the cumulative total for each number,
i.e

Number Cumulative Score
1 1
2 3
3 6
4 10
5 15

b). Modify the program to display all the numbers up to a
cumulative
score of 100

3). Wire a method to calculate the cube (x*x*x) of each number an display
the answer to the last screen.


Thanks



So you basically want someone to make your homeworks? Forget about it.



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Java All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.