c++ program to check whether a person is eligible to vote using if statement