Search:

Type: Posts; User: maximus20895

Search: Search took 0.40 seconds.

  1. Replies
    2
    Views
    2,707

    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. Replies
    1
    Views
    1,502

    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. Replies
    2
    Views
    3,573

    Re: While JOptionPane equal Yes????

    Ah, that makes sense.

    Thanks, I appreciate it!
  4. Replies
    2
    Views
    3,573

    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. 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. Replies
    1
    Views
    1,512

    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. 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. 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. Replies
    5
    Views
    2,215

    Re: Help with the While in the Do-While

    Yes, it all makes sense. I appreciate it :)
  10. Replies
    5
    Views
    2,215

    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. Replies
    5
    Views
    2,215

    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. Replies
    5
    Views
    2,215

    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