Question: C++ Program 1 Write a program that determines if a person is an adult. Declare a string variable, firstName. Declare an integer variable, age. Asks
C++
Program 1 Write a program that determines if a person is an adult. Declare a string variable, firstName. Declare an integer variable, age. Asks the user to enter their first name, and store it in the firstName variable. Asks the user to enter their age in years, and store it in the age variable. If the age is greater or equal to 18, the print out their name and you are an adult Else print out their name and you are not an adult.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
