Question: Assume a variable voterAge that has already been declared and initialized with a value, write ONE if / else if / else block to validate
Assume a variable voterAge that has already been declared and initialized with a value, write ONE ifelse ifelse block to validate voterAge as follows:
if voterAge is greater than or equal to output the message "You are eligible to vote"
if voterAge is between and output the message "You are NOT eligible to vote"
if voterAge is less than output the message "Age entered is INVALID!"
Edit Format Table
Paragraph
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
