These are the instructions, I am not asking anyone to code for me but would like to hear some ideas on how to start, this just trying to figure it out thing isn't working in this case!
Write a program, HeartRates.java , that takes as input a series of name and age pairs, prints out heart rates for exercising, and continues until either the user types "q" or 4 iterations have been executed.
Computing heart rates for exercising (press q to exit)
-----------------------------------------------
Name: John
Enter age: 20
John for your age: 20
Your aerobic zone is: 150
Your fat Burning zone is: 130
Computing heart rates for exercising (press q to exit)
-----------------------------------------------
Name: Jack
Enter age: aaa
Error! Check age again.
Computing heart rates for exercising (press q to exit)
-----------------------------------------------
Name: Joe
Enter age: 21
Joe for your age: 21
Your aerobic zone is: 149
Your fat Burning zone is: 129
Program terminating. Bye!
if you have any ideas would love to hear them, yes I need to learn this on my own but my professor acts like we already should know how to program.
Write a program, HeartRates.java , that takes as input a series of name and age pairs, prints out heart rates for exercising, and continues until either the user types "q" or 4 iterations have been executed.
Computing heart rates for exercising (press q to exit)
-----------------------------------------------
Name: John
Enter age: 20
John for your age: 20
Your aerobic zone is: 150
Your fat Burning zone is: 130
Computing heart rates for exercising (press q to exit)
-----------------------------------------------
Name: Jack
Enter age: aaa
Error! Check age again.
Computing heart rates for exercising (press q to exit)
-----------------------------------------------
Name: Joe
Enter age: 21
Joe for your age: 21
Your aerobic zone is: 149
Your fat Burning zone is: 129
Program terminating. Bye!
if you have any ideas would love to hear them, yes I need to learn this on my own but my professor acts like we already should know how to program.
Comment