Question: C++ please. Write code that uses conditional execution to solve the following: THIS ASSIGNMENT DOES NOT REQUIRE USER INPUT DO NOT attempt to use loops....follow
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" 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" o
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
