Question: Question 4 : My first Scanner: Create a small program named VotingRight that asks the user to enter his age. If the user is not

Question 4: My first Scanner:
Create a small program named VotingRight that asks the user to enter his age. If the user is not old enough to vote, the program needs to print the number of years until the person is allowed to vote.
Example of the output:
How old are you? 11
You will be allowed to vote in 7 years.
How old are you? 24
You have the right to votel
 Question 4: My first Scanner: Create a small program named VotingRight

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!