# Search:

Type: Posts; User: maximus20895

1. ## Thread: Find total number less than average

by maximus20895
Replies
2
Views
1,420

### Find total number less than average

I am doing arrays and I need to print the total numbers of arrays are less than the average of all the arrays. It should be simple, but I have no idea how to do it.

Any help?
2. ## Thread: Format Problems

by maximus20895
Replies
1
Views
815

### Format Problems

I am trying to make it say feet meters meters feet, but instead it just says feet meters then enters the data and then starts the meter to feet. There are only two columns and I am trying to...
3. ## Thread: While JOptionPane equal Yes????

by maximus20895
Replies
2
Views
2,713

### Re: While JOptionPane equal Yes????

Ah, that makes sense.

Thanks, I appreciate it!
4. ## Thread: While JOptionPane equal Yes????

by maximus20895
Replies
2
Views
2,713

### While JOptionPane equal Yes????

I want the while at the end to say while JOption says yes. Meaning when asked if they want to play again it will re loop and play it again if they click yes. I have looked and I can't find how to do...
5. ## Thread: Something wrong with computing the average

by maximus20895
Replies
5
Views
1,343

### Re: Something wrong with computing the average

Haha, sorry.

It does the same thing as the first which is when it calculates the average it adds the zero with it. So the average goes way down. I just want it to calculate any - or + numbers and...
6. ## Thread: How to format?

by maximus20895
Replies
1
Views
552

### How to format?

Here is the code:

import java.util.Scanner;

public class Problem2 {
public static void main (String []args){
// Scanner
Scanner scan = new Scanner(System.in);
7. ## Thread: Something wrong with computing the average

by maximus20895
Replies
5
Views
1,343

### Re: Something wrong with computing the average

Still doesn't work :(

I switch the do{ with while (number != 0){ and deleted the while in the do :(

Stupid zero.
8. ## Thread: Something wrong with computing the average

by maximus20895
Replies
5
Views
1,343

### Something wrong with computing the average

I have to compute the average in this program, but the average cannot consists of zero which ends the program. For example if I enter 1, 2, 3, -1, then 0 to exit, the average will be the sum (5) over...
9. ## Thread: Help with the While in the Do-While

by maximus20895
Replies
5
Views
1,491

### Re: Help with the While in the Do-While

Yes, it all makes sense. I appreciate it :)
10. ## Thread: Help with the While in the Do-While

by maximus20895
Replies
5
Views
1,491

### Re: Help with the While in the Do-While

Okay, so I just played around with it and this is what I got and it seemed to work.

package practice;
//imports
import java.util.Scanner;

public class DoWhile {
11. ## Thread: Help with the While in the Do-While

by maximus20895
Replies
5
Views
1,491

### Re: Help with the While in the Do-While

Ah, that makes sense. So would I have to change the do or what?

How would I declare the variable before the do-while loop?

I just copied what my teacher did haha.
12. ## Thread: Help with the While in the Do-While

by maximus20895
Replies
5
Views
1,491

### Help with the While in the Do-While

I have tried over and over again, but I can't seem to get this; especially with the while at the end. I think the problem is the "guess" right after the while, but I don't know. Any help would be...
Results 1 to 12 of 12