Search:

Type: Posts; User: dicdic

Search: Search took 0.08 seconds.

  1. [SOLVED] Re: Java Coding: Assistance with a loop that calculates maximum, minimum, and average of 10 inputted numbers.

    your welcome.. happy to help you :D
  2. [SOLVED] Re: Java Coding: Assistance with a loop that calculates maximum, minimum, and average of 10 inputted numbers.

    are you asking to help you with that problem? or you can solve it yourself?


    I said that because of this:

    do you mean to store it in different variables? so that you can access it when you...
  3. [SOLVED] Re: Java Coding: Assistance with a loop that calculates maximum, minimum, and average of 10 inputted numbers.

    okay i'll give you example, a simple example closer to your problem.
    I hope it is okay to the administrator of this forum to show some simple example.



    import java.util.Scanner;

    public...
  4. [SOLVED] Re: Java Coding: Assistance with a loop that calculates maximum, minimum, and average of 10 inputted numbers.

    look at your loop statement for ( int i = 0; i < 10; i++ )
    as you noticed, it will execute 10 times right?
    but actually, you can make it execute more than or less than 10 times
    if you put some...
  5. [SOLVED] Re: Java Coding: Assistance with a loop that calculates maximum, minimum, and average of 10 inputted numbers.

    okay,
    what if you put a conditional statement right after you get the input?
    after number = scan.nextInt ();? so that you can check it right after you get the user's input(that is what i'm talking...
  6. [SOLVED] Re: Java Coding: Assistance with a loop that calculates maximum, minimum, and average of 10 inputted numbers.

    yes you did, but it seems that you did not remove its braces? please check although it wont a affect your program



    I guess you tried to input -10 right?
    and the problem is your program cant...
  7. [SOLVED] Re: Java Coding: Assistance with a loop that calculates maximum, minimum, and average of 10 inputted numbers.

    what I meant when I said about wrong arithmetic solution is just to remove total += total
    Sorry if I made you confused with that. I'm not good in English :)

    Actually your solution is right
    just...
  8. [SOLVED] Re: Java Coding: Assistance with a loop that calculates maximum, minimum, and average of 10 inputted numbers.

    No, it will still execute 10 times.



    if you want to remove Number of values = 71500 from output,
    then erase this in your statement System.out.println("Number of values = " + total);

    and the...
  9. [SOLVED] Re: Java Coding: Assistance with a loop that calculates maximum, minimum, and average of 10 inputted numbers.

    what do you mean by unusual output?
    can you send here sample output? so we can see it?
    And I just want to ask, what is the sense of your outer loop?
    for ( int i = 0; i < 1; i++ ) //Executes 1 time...
  10. [SOLVED] Re: Java Coding: Assistance with a loop that calculates maximum, minimum, and average of 10 inputted numbers.

    Please edit your code into proper highlights
    [c o d e = j a v a]
    // your code goes here
    [/ c o d e]
    just remove the spaces I put

    Actually it does computed the maxGrade, minGrade and average(if...
Results 1 to 10 of 10