•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 391,572 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,864 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 722 | Replies: 30
![]() |
•
•
Join Date: Jul 2008
Posts: 11
Reputation:
Rep Power: 0
Solved Threads: 0
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.
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 : 31 Days Ago at 10:21 am. Reason: Snipped email
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,134
Reputation:
Rep Power: 10
Solved Threads: 257
Please read:after that reformulate your question
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,134
Reputation:
Rep Power: 10
Solved Threads: 257
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
----------------------------------------------
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
•
•
Join Date: Jul 2008
Posts: 11
Reputation:
Rep Power: 0
Solved Threads: 0
1.Use nested loops that print the following pattern:-
A) 1
12
123
1234
12345
123456
>>>>>>>>>>>>>>>>>>>>
the answer is :
A) 1
12
123
1234
12345
123456
>>>>>>>>>>>>>>>>>>>>
the answer is :
mport java.util.Scanner;
public class program1 { // declaration of class
public static void main ( String [] args ) { // declaration of main method
for ( int i = 1 ; i <= 6 ; i++ )
{
for ( int x = 1 ; x <= i ; x++ )
{
System.out.print(x); //This statement to print X
}
System.out.println(); // This statement to print a new line
}
} // end of main method
} // end of class Last edited by Tekmaven : 30 Days Ago at 2:28 pm. Reason: Code tags
•
•
Join Date: Jul 2008
Posts: 11
Reputation:
Rep Power: 0
Solved Threads: 0
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 :
Ex.
1 2 3 4 OK 6 7 8 9 OK FINE 12 13 14 OK….....
>>>>>>>>>>>>>>>>>>>>>
the answer is :
import java.util.Scanner;
public class program3 { // declaration of class
public static void main ( String [] args ) { // declaration of main method
int x ;
for ( x = 1 ; x <= 50 ; x++ ) {
if ( x % 5 == 0 )
System.out.print( " Ok " );
else if ( x % 11 == 0 )
System.out.print( " Fine " );
else
System.out.print( " " + x + " " );
}
}
} Last edited by Tekmaven : 30 Days Ago at 2:31 pm. Reason: Code tags
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.
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
----------------------------------------------
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
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Java Marketplace
Other Threads in the Java Forum
- Previous Thread: java homework help!!
- Next Thread: Please Help Compiling Error



Linear Mode