help please

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2008
Posts: 11
Reputation: zoooz_20 is an unknown quantity at this point 
Solved Threads: 0
zoooz_20 zoooz_20 is offline Offline
Newbie Poster

help please

 
0
  #1
Jul 20th, 2008
i have java assignment >>


i need any one to help me to solve it >>



this is my e-mail >>> [email removed]
...............................

Java Assignment 3

1.Use nested loops that print the following pattern:-

A) 1
12
123
1234
12345
123456

2.Write a program to compute the sum and product of all odd integers from 1 to 19.


3.write a program which writes the integers from 1 to 50, replacing every multiple of (5) by the word "OK" and every integer divisible by (11) by the word "FINE"
Ex.
1 2 3 4 OK 6 7 8 9 OK FINE 12 13 14 OK….....


4.Write a program that read a list of numbers from the user, storing them in one dimension array, then prints them in the opposites order.
Example
Input :- 5 8 7 1 12 10 78 14 5 32 15
Output:- 15 32 5 14 78 10 12 1 7 8 5


5.Write a program to find the positions and number of zeros in two dimension array of integer.


6.Write a program that reads a student’s test scores in the range of 50-100. It should then determine the number of students having scores in each of the following ranges: 50-59, 60-69, 70-79, 80-89, 90-100.
Note: use one dimension array to store the students score.
Last edited by Narue; Jul 20th, 2008 at 11:21 am. Reason: Snipped email
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,245
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 492
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: help please

 
-1
  #2
Jul 20th, 2008
Please read:
  1. the forum rules
  2. sticky on homeworks
after that reformulate your question
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 11
Reputation: zoooz_20 is an unknown quantity at this point 
Solved Threads: 0
zoooz_20 zoooz_20 is offline Offline
Newbie Poster

Re: help please

 
0
  #3
Jul 20th, 2008
i hava solve the 1st one and the 3rd one but the athor i dont
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,245
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 492
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: help please

 
0
  #4
Jul 20th, 2008
for loop from 1 to 19
if statement is num%2 == 1
yes, add to sum
no, next number
problem solved
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,466
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 266
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: help please

 
0
  #5
Jul 20th, 2008
Come on now, show some effort. Show us what you have tried in solving those problems, and provide information about what is going wrong with them and we will help you correct them, but we will not do them for you.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 11
Reputation: zoooz_20 is an unknown quantity at this point 
Solved Threads: 0
zoooz_20 zoooz_20 is offline Offline
Newbie Poster

Re: help please

 
0
  #6
Jul 21st, 2008
1.Use nested loops that print the following pattern:-

A) 1
12
123
1234
12345
123456
>>>>>>>>>>>>>>>>>>>>
the answer is :
  1. mport java.util.Scanner;
  2. public class program1 { // declaration of class
  3. public static void main ( String [] args ) { // declaration of main method
  4.  
  5. for ( int i = 1 ; i <= 6 ; i++ )
  6. {
  7. for ( int x = 1 ; x <= i ; x++ )
  8. {
  9. System.out.print(x); //This statement to print X
  10. }
  11. System.out.println(); // This statement to print a new line
  12. }
  13. } // end of main method
  14. } // end of class
Last edited by Tekmaven; Jul 21st, 2008 at 3:28 pm. Reason: Code tags
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 11
Reputation: zoooz_20 is an unknown quantity at this point 
Solved Threads: 0
zoooz_20 zoooz_20 is offline Offline
Newbie Poster

Re: help please

 
0
  #7
Jul 21st, 2008
3.write a program which writes the integers from 1 to 50, replacing every multiple of (5) by the word "OK" and every integer divisible by (11) by the word "FINE"
Ex.
1 2 3 4 OK 6 7 8 9 OK FINE 12 13 14 OK….....
>>>>>>>>>>>>>>>>>>>>>
the answer is :

  1. import java.util.Scanner;
  2. public class program3 { // declaration of class
  3. public static void main ( String [] args ) { // declaration of main method
  4.  
  5. int x ;
  6.  
  7. for ( x = 1 ; x <= 50 ; x++ ) {
  8. if ( x % 5 == 0 )
  9. System.out.print( " Ok " );
  10. else if ( x % 11 == 0 )
  11. System.out.print( " Fine " );
  12. else
  13. System.out.print( " " + x + " " );
  14. }
  15. }
  16. }
Last edited by Tekmaven; Jul 21st, 2008 at 3:31 pm. Reason: Code tags
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 11
Reputation: zoooz_20 is an unknown quantity at this point 
Solved Threads: 0
zoooz_20 zoooz_20 is offline Offline
Newbie Poster

Re: help please

 
0
  #8
Jul 21st, 2008
please i need ur help >>> becuse i have to submit the assignment tomorow ... there is no time >> becuse i need to understand them ... please >>> dont forget me
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,466
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 266
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: help please

 
0
  #9
Jul 21st, 2008
No one's forgotten you, but it seems as though you have been wasting your time, and us wasting our time to make up for that isn't going to happen.

Show what you have for the other problems and we will help you to correct it, as already said, but we are not going to do it for you.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 11
Reputation: zoooz_20 is an unknown quantity at this point 
Solved Threads: 0
zoooz_20 zoooz_20 is offline Offline
Newbie Poster

Re: help please

 
0
  #10
Jul 21st, 2008
why u r not helpfull with me >>
there is an idea in this programs but i dont know what is it ...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Java Forum
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC