Using Java Variables, Data Types, and Keywords
In this exercise, you use what you have learned about naming Java variables, Java data types, and keywords to answer Questions 1-2.
1. Is each of the following a legal Java variable name? (Answer yes or no.)
2. What data type (int, double, or String) is appropriate for storing each of the following values?
A person's height in inches _______________________________________________________
The amount of your car payment _______________________________________________________
Your grandmother's maiden name _______________________________________________________
The amount of interest on a loan, such as 10 percent _______________________________________________________
The number of siblings you have _______________________________________________________
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.