Problem

Using Java Variables, Data Types, and Keywords In this exercise, you use what you have...

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 _______________________________________________________

Step-by-Step Solution

Request Professional Solution

Request Solution!

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.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 2
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT