Search:

Type: Posts; User: Disruption

Search: Search took 0.27 seconds.

  1. [SOLVED] Re: Completely clueless as to how to do this assignment.

    Placing MHR as an Int solved this. Thank you for your help Junky.
  2. [SOLVED] Re: Completely clueless as to how to do this assignment.

    Age is an Int and the result of (220 - age) should result in an int.

    MHR is a string.

    So wouldn't that mean that I am trying to get an end result of an integer?
  3. [SOLVED] Re: Completely clueless as to how to do this assignment.

    2461

    That's the error and I'm not understanding.
  4. [SOLVED] Re: Completely clueless as to how to do this assignment.

    Would you mind giving me a hint in regards to this?
  5. [SOLVED] Re: Completely clueless as to how to do this assignment.

    I'll try it this way. I'm trying to convert an integer (int age) into a way of usage into the equation listed above (mhr = 220 - age). Upon doing that, it gives me errors such as incompatible types....
  6. [SOLVED] Re: Completely clueless as to how to do this assignment.

    String mhr;
    mhr = (220 - age );
    System.out.println("Maximum Heart Rate:" + age + " bmp ")

    I am having troubles parsing the string so I can use it in the equation to determine...
  7. [SOLVED] Re: Completely clueless as to how to do this assignment.

    Hi Junky,

    Here is what I have so far:

    import java.util.Scanner;
    public class TargetZone
    {
    public static void main(String [] args)
    {
    Scanner in = new Scanner(System.in);
  8. [SOLVED] Completely clueless as to how to do this assignment.

    Hey everyone,

    So here is the assignment that was given to me:
    2460

    The assignment is based off of using the if statements and I'm just not familiar with how to start this. The following is how...
Results 1 to 8 of 8