Question: Write code in C++ to answer this question: Article II Section 1 Clause 5, of The Constitution of the United States states that No Person

Write code in C++ to answer this question:

Article II Section 1 Clause 5, of The Constitution of the United States states that No Person except a natural born Citizen, or a Citizen of the United States at the time of the Adoption of this Constitution, shall be eligible to the Office of President; neither shall any Person be eligible to that Office who shall not have attained to the Age of thirty five Years, and been fourteen Years a Resident within the United States. Write a program that determines if a person is eligible to run for president of the United States in 2020. (Note: A natural-born citizen is a person who is born within the jurisdiction of the U.S. government. A 2020 candidate for president must achieve age 35 by Inauguration Day, 1/20/2021.)

There are three checks and the expected output for

Check 1:

Sorry! You are not eligible to be to run for president.

Check 2:

Sorry! You are not eligible to be to run for president.

Check 3:

Congratulations! You are eligible to be to run for president!

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!