0
Help me solve
https://code.sololearn.com/c4RzDiM6YAzn/?ref=app Program input age,status,gender using following rules print the location of service. If employee is female, then program will display "You will work only in metropolitan areas." If employee is a male and age is between 25 to 45 then program will display "You may work in anywhere". If employee is male and age is in between 46 to 65 then the program will display "You will work in metropolitan areas only."Any other information program Print ERROR
2 ответов
+ 2
1 - To use Scanner class import util package
2 - there is semicolon (;) after first condition remove that
3 - What is the use of status?
4 - for multi-line statement inside if condition use { }
if(gender=='M') {
//multi-line statement
} else
System.out.println("ERROR");
0
A͢J { Challenge Accepted } status must put Widowed Singel Married Divorced
Then the rule if Input is out of rule It must print ERROR