Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

I NEED HELP!



How do I write a program to compute the ideal weight for either male or female. According to one study, the ideal weight for a female is 100 pounds plus 5 pounds for each inch in height over 5 feet. For example, the ideal weight for a female who is 5’3’’ would be
100+15=115 pounds. For a male, the ideal weight is 106 pounds plus 6 pounds for each inch in height over 5 feet. For example, the ideal weight for a male who is 6’2’’ would be 106+ 14*6 =190 pounds. Your program should ask the user to input his/her gender by typing 1 for male and 2 for female. Then the user will enter how many inches they are over 5ft. It should then compute and print either the ideal weight for a female or the ideal weight for a male. I really don't know how I'm supposed to do this, and I really wish I had a computer science genius to help me or show me how to do this, if anyone can help, PLEASE PLEASE HELP ME!!! THANK YOU!