Answer the following question:
Question 1: Write an if statement that will assign 7 to p if the variable q is outside the range 100 through 1000. (Use single spaces between operators, operands and statements)
Question 2: Write a statement to call the function close which returns nothing passing it the variable door.
Can you write this program in c language? Define every function.