Question: / / VotingAge.cpp - This program determines if a / / person is eligible to vote. #include #include using namespace std; int main ( )

// VotingAge.cpp - This program determines if a // person is eligible to vote.
#include
#include
using namespace std; int main()
{
int myAge =17;
string ableToVote = "Yes"; const int VOTING_AGE =18; if(myAge < VOTING_AGE)
ableToVote ="No";
cout <<"My Age: "<< myAge << endl;
cout << "Able To Vote: "<< ableToVote << endl; return 0;
}
What is the exact output when this program executes?

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 Programming Questions!