help please with conditionals else if statement!!!!!
Posted on 2016-10-22
I have problem need help with below is the problem:
After this exercise, you should be able to:
Demonstrate how to write an else if statement that checks many conditions
Write a function named checkLock. This function should:
have four arguments that are all numbers.
return "correct" if the four numbers are a valid combination.
return "incorrect" if the four numbers aren’t a valid combination.
A combination is valid if:
the first number is a 3, 5, or 7.
the second number is 2.
the third number is between 5 and 100. 5 and 100 are both valid numbers.
the fourth number is less than 9 or greater than 20. 9 and 20 are both invalid numbers.