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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started