Question: Q2. Using Nested if-else statement, write a program asks user to enter age and marital status (Y or N) and then using following rules print

 Q2. Using Nested if-else statement, write a program asks user to

Q2. Using Nested if-else statement, write a program asks user to enter age and marital status (Y or N) and then using following rules print their place of service If employee is married, then he will work only in urban areas Otherwise, if employee age is in between 20 to 40 then he may work in anywhere, and if employee age is in between 40 t0 60 then he will work in urban areas only. And any other input of age should print "ERROR

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!