hi guys I am a beginner and I struggled to make a this java program its an application to join a club the conditions it must be a girl and her age 10 or less and(her Wight is lower than 40 or height more than 100) I tried to do it with both if and switch statments but i failed any help please?
>Solution :
This will slove the problem:
String gender = "f";
short age = 9;
double weight = 39.5;
double height = 101.3;
if (gender.equalsIgnoreCase("f") && age <= 10 && (weight < 40 || height > 100))
{
... join the club ...
}