The program is to accept the HRest, age, gender of the athletic and display the type of sports that athletic is suitable for based on the following table: Age Males (VO:Max) Females (VO:Max) mL/(kg-min) 43 - 60 mL/(kg min) Sport Basketball yrs 18 - 30 40 – 60 Bicycling Canoeing Gymnastics Swimming 18 - 26 62 - 74 47 - 57 55 – 67 52 - 58 18 - 26 47 - 67 18 - 22 10 - 25 36 - 50 50 – 70 40 – 60 The program needs to be 'smart' enough as well. When inappropriate values are entered to the program, for example, a negative age, then the program will ask the operator to enter the value again.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Hi guys,

Need help with the attached question and programing it in JAVA language.

The VO,Max score of an athletic reflects the physical fitness of an individual. It is the
maximum capacity of an individual's body to transport and use oxygen during incremental
exercise.
Kaplan Sports Club requires a Sports Recommender program to calculate the VO2Max of an
individual and display the type of sport the athletic is suitable for.
The Sports Recommender program use the following formula to calculate each athlete's
VO-Max in mL/(kg.min).
HRmax
VO,Max = 15
HRrest
HRmax is the Maximum Heart Rate. (HRmax= 220 – age)
HRrest is the Resting Heart Rate.
The program is to accept the HRest, age, gender of the athletic and display the type of sports
that athletic is suitable for based on the following table:
Age
Males (VO:Max) Females (VO:Max)
mL/(kg min)
40 – 60
mL/(kg min)
Sport
Basketball
yrs
18 - 30
43 – 60
47 – 57
47 – 67
Bicycling
Canoeing
Gymnastics
Swimming
18 - 26
62 – 74
18 - 26
55 – 67
18 - 22
52 – 58
36 – 50
10 - 25
50 – 70
40 – 60
The program needs to be 'smart' enough as well. When inappropriate values are entered to
the program, for example, a negative age, then the program will ask the operator to enter the
value again.
Transcribed Image Text:The VO,Max score of an athletic reflects the physical fitness of an individual. It is the maximum capacity of an individual's body to transport and use oxygen during incremental exercise. Kaplan Sports Club requires a Sports Recommender program to calculate the VO2Max of an individual and display the type of sport the athletic is suitable for. The Sports Recommender program use the following formula to calculate each athlete's VO-Max in mL/(kg.min). HRmax VO,Max = 15 HRrest HRmax is the Maximum Heart Rate. (HRmax= 220 – age) HRrest is the Resting Heart Rate. The program is to accept the HRest, age, gender of the athletic and display the type of sports that athletic is suitable for based on the following table: Age Males (VO:Max) Females (VO:Max) mL/(kg min) 40 – 60 mL/(kg min) Sport Basketball yrs 18 - 30 43 – 60 47 – 57 47 – 67 Bicycling Canoeing Gymnastics Swimming 18 - 26 62 – 74 18 - 26 55 – 67 18 - 22 52 – 58 36 – 50 10 - 25 50 – 70 40 – 60 The program needs to be 'smart' enough as well. When inappropriate values are entered to the program, for example, a negative age, then the program will ask the operator to enter the value again.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
JQuery and Javascript
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education