Java programming Question: :
The Gray Method estimates the genetic potential a child has for reaching an adult height. The formula averages the father and mother's height. If the child is a girl you subtract 5 inches or 13 centimeters. If the child is a boy you add 5 inches or 13 centimeters. The result is the predicted height, reasonably accurate to plus or minus 5 inches.
Write a program asking:
• Whether the data is in inches or centimeters
• The father's height
• The mother's height
• The child's gender
Calculate the potential height and print:
To do this program we need netbeansIDE