Choose the best data type for each of the following so that any reasonable value is accommodated
Question:
Choose the best data type for each of the following so that any reasonable value is accommodated but no memory storage is wasted. Give an example of a typical value that would be held by the variable, and explain why you chose the type you did.
a. The number of siblings you have
b. Your final grade in this class
c. The population of Earth
d. The population of a U.S. county
e. The number of passengers on a bus
f. One player’s score in a Scrabble game
g. One team’s score in a Major League Baseball game
h. The year an historical event occurred
i. The number of legs on an animal
j. The price of an automobile
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: