hi,i started to learn java nearly 2 weeks ago so i dont know java clearly,i try to write a program about trainingzone.
i must provide an interactive training zonecalculator that prompts a user for age.
i write a program but it gives errors and i dont improve this,if anyone can help me i will be too happy ,maybe most of people know this program and it seems easy but please dont forget im starter of java.Already now thanks to everybody..
//Purpose:compute a heart beat training zone for your age of interest
import java.util.*;
public class TrainingZone{
//main():application entry point
public static void main(string[]args){
//defining constants
final double LOW_ZONE_MULTIPLIER=0.65;
final double HIGH_ZONE_MULTIPLIER=0.80;
final double BASE_RATE=220.0;
//displaying legend(step1)
System.out.println("Heart beat estimator");
//get person's characteristics
System.out.print("Enter age(years): ");
double age = stdin.nextDouble();
//perform trainingZone
double trainingzone=HIGH_ZONE_MULTIPLIER*(BASE_RATE-ageOf Interest);
double trainingzone=LOW_ZONE_MULTIPLIER*(BASE_RATE-ageOf Interest); //display result
System.out.println("Suggested heart beat training zone for");
System.out.println("a fit person"+"age of interest"+"years with normal");
System.out.println("heart rate is"+"low BeatRate"+"to");
System.out.println ("high BeatRate"+"beats per minute");
}
}
it gives ')'expected errors on
double trainingzone=HIGH_ZONE_MULTIPLIER*(BASE_RATE-ageOf Interest);
double trainingzone=LOW_ZONE_MULTIPLIER*(BASE_RATE-ageOf Interest);
im waiting to your help:))