Question: For problems 6-32, determine the most appropriate data type to use for a variable to represent the data. Give the declaration required for the variable
For problems 6-32, determine the most appropriate data type to use for a variable to represent the data. Give the declaration required for the variable as well.
7. A variable Age to represent a persons age.
8. A variable "Flag" which will only take on values TRUE and FALSE.
9. A variable "T" which will be used for financial calculations (representing dollar amounts down to the cent).
12. A variable "Q" which will only numeric integer values between 0 and 100.
13. A variable "Lastname" which will take on the value of a user's last name.
16. A variable that can take on values from -10 to 100.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
