Question: Does anyone know about C++ programming code of this subject? Write code that uses conditional execution to solve the following: THIS ASSIGNMENT DOES NOT REQUIRE

Write code that uses conditional execution to solve the following: THIS ASSIGNMENT DOES NOT REQUIRE USER INPUT DO NOT attempt to use loops....follow the directions. Create a variable that is assigned a numerical value - this represents the age of a user Based on that age, determine 2 different things: Is this person a teenager (13-19 years of age) If so then output "Person is a Teenager" If not then output "Person is not a Teenager" o Is this person eligible to vote (that is older than 18) If so then output "Person is eligible for voting" If not then output "Person is not eligible for voting" Some sample output: The user's age is: 29 Person is not Teenager Person is eligible for voting Enter your age: 14 Person is Teenager Person is not eligible for voting Enter your age: 21 Person is not a Teenager Person is eligible for voting
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
