Search:

Type: Posts; User: Freaky Chris

Search: Search took 0.09 seconds.

  1. Replies
    36
    Views
    7,406

    [SOLVED] Re: Physics Program

    formula.CaclulateForce(a,b));

    Typo should be

    formula.CalculateForce(a,b));
  2. Replies
    36
    Views
    7,406

    [SOLVED] Re: Physics Program

    No farm from it, but I'm very confused as to what you are trying to achieve and how you are trying to d it

    Chris
  3. Replies
    36
    Views
    7,406

    [SOLVED] Re: Physics Program

    You can't have global variables defined within a function


    class Force{
    public int mass;
    public int acceleration;//is that right?
    public Force(double a, double b){

    }...
  4. Replies
    36
    Views
    7,406

    [SOLVED] Re: Physics Program

    class Force{
    public Force(double a, double b){
    // some code here
    }
    }//end of class

    Theres a basic class called force, with a constructor to match your call...
  5. Replies
    36
    Views
    7,406

    [SOLVED] Re: Physics Program

    What is savitchIn defined as? (post all your code) that way I can see your Force class too.

    You can edit your posts too, and please you code tags [ code ] [ /code ] ( without spaces :P )

    Chris
  6. Replies
    36
    Views
    7,406

    [SOLVED] Re: Physics Program

    Ye I don't have a problem with that.
    I never mind helping.

    Chris
  7. Replies
    36
    Views
    7,406

    [SOLVED] Re: Physics Program

    You are honestly telling me you can't do that. The information is there, and it would have been the first thing you were taught on your course. I have no problem helping people, but you are showing...
  8. Replies
    36
    Views
    7,406

    [SOLVED] Re: Physics Program

    Scanner sin = new Scanner(System.in);
    double m = sin.nextDouble();
    double a = sin.nextDouble();

    System.out.println("F = " + (m*a) );
Results 1 to 8 of 8