Placing MHR as an Int solved this. Thank you for your help Junky.
Type: Posts; User: Disruption
Placing MHR as an Int solved this. Thank you for your help Junky.
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?
2461
That's the error and I'm not understanding.
Would you mind giving me a hint in regards to this?
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....
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...
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);
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...