Search:

Type: Posts; User: cheshire

Search: Search took 0.10 seconds.

  1. Replies
    2
    Views
    972

    How do I get an average using an Array?

    I'm trying to calculate the average of grades that a user puts in.

    Here is my code so far:


    public static void main(String[] args) {

    Scanner input = new Scanner (System.in);...
  2. Replies
    5
    Views
    1,103

    [SOLVED] Re: Why is Java not printing my method results?

    I'm trying to figure it out but I'm not sure where the mistake is.
  3. Replies
    5
    Views
    1,103

    [SOLVED] Re: Why is Java not printing my method results?

    this is the output if that's what you mean.

    Enter Hours Traveled
    5
    Enter MPH
    40
    Hours Distance
    1
    2
    3
  4. Replies
    5
    Views
    1,103

    [SOLVED] Why is Java not printing my method results?

    I am trying to write a loop that calculates the distance traveled (distance = speed * time). It should use the loop to calc how far the vehicle traveled for each hour of time. My program asks for...
Results 1 to 4 of 5