School Voting Age IN C# Problem Description The DPCDSB recently announced that all students who are, or have been, in high school as of 2022 are allowed to vote on whether or not all schools across the peel region should mandate a pineapple-pizza day wherein every 7th Tuesday of every 3rd month all students must eat at least one slice of Hawaiian Pizza. The rule in DPCDSB is that you need to be 13 on September 6th, 2022 to be allowed to be a high school student that year (it's not, but it makes this problem easier ;) ). Therefore, given someone's birthday, you must determine whether that person will be 13 years or older on the first day of school thereby granting them permission to vote on this very important decision. If they turn 13 on the first day of school, they can vote. Input Specification The input will consist of a line of the form y m d, where y is the year of a potential voter's birth (0 ≤ y ≤2030), m (1 ≤ m ≤ 12) is the month of birth, and d (1 ≤ d ≤ 31) is the day. It is assured that each birthday is a correct and valid date. Output Specification Output a line with either "Yes" if the student is eligible to vote, or "No" otherwise. Sample Run 1 Enter Birthday: 1990 01 01 Yes Sample Run 2 Enter Birthday: 2009 09 08 No
School Voting Age IN C#
Problem Description
The DPCDSB recently announced that all students who are, or have been, in high school as of 2022 are allowed to vote on whether or not all schools across the peel region should mandate a pineapple-pizza day wherein every 7th Tuesday of every 3rd month all students must eat at least one slice of Hawaiian Pizza. The rule in DPCDSB is that you need to be 13 on September 6th, 2022 to be allowed to be a high school student that year (it's not, but it makes this problem easier ;) ). Therefore, given someone's birthday, you must determine whether that person will be 13 years or older on the first day of school thereby granting them permission to vote on this very important decision. If they turn 13 on the first day of school, they can vote.
Input Specification
The input will consist of a line of the form y m d, where y is the year of a potential voter's birth (0 ≤ y ≤2030), m (1 ≤ m ≤ 12) is the month of birth, and d (1 ≤ d ≤ 31) is the day. It is assured that each birthday is a correct and valid date.
Output Specification
Output a line with either "Yes" if the student is eligible to vote, or "No" otherwise.
Sample Run 1
Enter Birthday: 1990 01 01
Yes
Sample Run 2
Enter Birthday: 2009 09 08
No
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Operations Research : Applications and Algorithms](https://www.bartleby.com/isbn_cover_images/9780534380588/9780534380588_smallCoverImage.gif)
![Operations Research : Applications and Algorithms](https://www.bartleby.com/isbn_cover_images/9780534380588/9780534380588_smallCoverImage.gif)
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)