answersLogoWhite

0


Best Answer

Since the population of the Earth is around 7 billion (short scale), I would use either a long long integer that was 64 bits in length (if available) that would give me 18 digits of precision, or a double precision floating type that would give me 15 digits of precision.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What data type will you use to declare a variable to store population on earth?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is a variable used for in Python?

A variable is used to store information. As an example say you are asking someone for their favorite food, and want to store the answer in a variable called favoriteFood: favoriteFood = input("What is your favorite food?") Now if you print the value of favoriteFood (using print(FavoriteFood)) you will see that it has been saved in that variable. You can store any type in a variable, such as number, a string, or even an object.


How to Declare a variable that stores the cumulative sum java?

In Java:You declare the variable like this:int sum;If you want to include decimals, change this to:double sum;To store an initial value, just use the assignment operator:sum = 0;You can combine this with the declaration:double sum = 0.0;To add something to the variable, for example the value of a variable called "x", use one of the following:sum = sum + x;sum += x;In Java:You declare the variable like this:int sum;If you want to include decimals, change this to:double sum;To store an initial value, just use the assignment operator:sum = 0;You can combine this with the declaration:double sum = 0.0;To add something to the variable, for example the value of a variable called "x", use one of the following:sum = sum + x;sum += x;In Java:You declare the variable like this:int sum;If you want to include decimals, change this to:double sum;To store an initial value, just use the assignment operator:sum = 0;You can combine this with the declaration:double sum = 0.0;To add something to the variable, for example the value of a variable called "x", use one of the following:sum = sum + x;sum += x;In Java:You declare the variable like this:int sum;If you want to include decimals, change this to:double sum;To store an initial value, just use the assignment operator:sum = 0;You can combine this with the declaration:double sum = 0.0;To add something to the variable, for example the value of a variable called "x", use one of the following:sum = sum + x;sum += x;


What is application of arrays in C programming?

Array is used in C to store data of similar data type. Arrays are used when we want to store data in large quantities, e.g. if we want to store 100 numbers we have to declare 100 variables and remembering name of each variable is a very difficult task, here comes the array we can declare a single variable int num[100] now this variable can store 100 different or same numbers and can be accessed by referencing as num[0],num[1],num[2] and so on. So, we can say that to reduce efforts we use arrays.


Why Java is called strongly typed language?

A strongly typed programming languages is one that requires the type of a variable to be explicitly stated. C is a strongly typed language. You must declare the type of data a variable will store for C to interpret it: int myVariable;myVariable = 25; Perl is a loosely typed language. There is no need to declare the variable type before using it: $myVariable = 25;$myVariable = "A String.";


What is a javascript variable?

A variable in JavaScript is an identifier that provides a storage location used to store a data value. The data stored at a particular location in memory. That we accessed by using the variable name. In JavaScript programs, a script will have to store the bits of information temporarily. It needs to do its work. It can store this data in variables. In other words, A variable is a symbolic name given to a location in the computer memory. Where we store the value, which can be used in the program. The value of the variable can change during the execution of the program. It may take different values at different times during the execution of the program. The name of the variable that we choose must be meaningful to understand, what it represents in the program. For example var Price = 100; Rules to follow: The name of the variable can contain a letter, digits, underscore(_), and dollar sign($). They must begin with a letter, not with a digit. Uppercase and Lowercase are distinct. That means the variable Total is not the same as total or TOTAl. It should not be a keyword. White space does also not allow. Variable can be any length. Hope this helps. Thank you

Related questions

What code would you use to declare a variable that can store the current in a circuit?

double variable_list;


What code would you used to declare a variable that can store the current in a circuit?

double variable_list;


How do you declare a variable that stores happy new year or other greeting messages in visual basic 2010?

Declare a string variable to store the message value.For example:Dim message As String = "Happy New Year"Console.WriteLine(message)message = "Merry Christmas"Console.WriteLine(message)


How do you declare a variable that stores happy new year or other greeting massages in visual basic 2010?

Declare a string variable to store the message value. For example: Dim message As String = "Happy New Year" Console.WriteLine(message) message = "Merry Christmas" Console.WriteLine(message)


What is a variable used for in Python?

A variable is used to store information. As an example say you are asking someone for their favorite food, and want to store the answer in a variable called favoriteFood: favoriteFood = input("What is your favorite food?") Now if you print the value of favoriteFood (using print(FavoriteFood)) you will see that it has been saved in that variable. You can store any type in a variable, such as number, a string, or even an object.


What is application of arrays in C programming?

Array is used in C to store data of similar data type. Arrays are used when we want to store data in large quantities, e.g. if we want to store 100 numbers we have to declare 100 variables and remembering name of each variable is a very difficult task, here comes the array we can declare a single variable int num[100] now this variable can store 100 different or same numbers and can be accessed by referencing as num[0],num[1],num[2] and so on. So, we can say that to reduce efforts we use arrays.


How to Declare a variable that stores the cumulative sum java?

In Java:You declare the variable like this:int sum;If you want to include decimals, change this to:double sum;To store an initial value, just use the assignment operator:sum = 0;You can combine this with the declaration:double sum = 0.0;To add something to the variable, for example the value of a variable called "x", use one of the following:sum = sum + x;sum += x;In Java:You declare the variable like this:int sum;If you want to include decimals, change this to:double sum;To store an initial value, just use the assignment operator:sum = 0;You can combine this with the declaration:double sum = 0.0;To add something to the variable, for example the value of a variable called "x", use one of the following:sum = sum + x;sum += x;In Java:You declare the variable like this:int sum;If you want to include decimals, change this to:double sum;To store an initial value, just use the assignment operator:sum = 0;You can combine this with the declaration:double sum = 0.0;To add something to the variable, for example the value of a variable called "x", use one of the following:sum = sum + x;sum += x;In Java:You declare the variable like this:int sum;If you want to include decimals, change this to:double sum;To store an initial value, just use the assignment operator:sum = 0;You can combine this with the declaration:double sum = 0.0;To add something to the variable, for example the value of a variable called "x", use one of the following:sum = sum + x;sum += x;


Can variable resistors store electrical charge?

NO. Variable capacitory can store a small charge


Why Java is called strongly typed language?

A strongly typed programming languages is one that requires the type of a variable to be explicitly stated. C is a strongly typed language. You must declare the type of data a variable will store for C to interpret it: int myVariable;myVariable = 25; Perl is a loosely typed language. There is no need to declare the variable type before using it: $myVariable = 25;$myVariable = "A String.";


How do you declare many float variables in java?

You can declare them one by one. However, if you want to store lots of related data, you may want to consider using an array, where you use a single variable name (for example) for 1000 different items, and a number called an index to access the individual items.


Which special variable store an address of any other variable?

pointer


What is a javascript variable?

A variable in JavaScript is an identifier that provides a storage location used to store a data value. The data stored at a particular location in memory. That we accessed by using the variable name. In JavaScript programs, a script will have to store the bits of information temporarily. It needs to do its work. It can store this data in variables. In other words, A variable is a symbolic name given to a location in the computer memory. Where we store the value, which can be used in the program. The value of the variable can change during the execution of the program. It may take different values at different times during the execution of the program. The name of the variable that we choose must be meaningful to understand, what it represents in the program. For example var Price = 100; Rules to follow: The name of the variable can contain a letter, digits, underscore(_), and dollar sign($). They must begin with a letter, not with a digit. Uppercase and Lowercase are distinct. That means the variable Total is not the same as total or TOTAl. It should not be a keyword. White space does also not allow. Variable can be any length. Hope this helps. Thank you