declares the variables age, state, legal, and defines the values as prompt command