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

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question

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

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Problems on Dynamic Programming
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L