Answer:
CPU is considered as the brain of the computer. CPU performs all types of data processing operations. It stores data, intermediate results, and instructions (program). It controls the operation of all parts of the computer
Answer:
//Define class
public class Main {
//define main method
public static void main(String[] args)
{
//declare and initialize the double type variable to 128
double mexico = 128;
//declare and initialize the double type variable to 323
double us = 323;
//declare and initialize the integer type variable to 0
int yr = 0;
//set the while loop to check which is greater
while (mexico < us)
{
//increment in the variable by 1
yr++;
//initialize in the variables acc. to the percentage
mexico *= 1.0101;
us *= 0.9985;
}
//print the following results
System.out.println("Population of the Mexico will be exceed the population U.S. in " + yr + " years");
System.out.println("Population of the Mexico will be " + mexico + " million");
System.out.println("and population of the U.S. will be " + us + " million");
}
}
<u>Output</u>:
Population of the Mexico will be exceed the population U.S. in81 years
Population of the Mexico will be 288.88435953355025 million
and population of the U.S. will be 286.0198193927948 million
Explanation:
<u>Following are the description of the program</u>.
- Firstly, we define the class 'Main' and inside it, we define the main method.
- Then, declare two double data type variables which are 'mexico' and 'us' and initialize in it to 128 and 323.
- Declare integer data type variable 'yr' and initialize in it to 0.
- Set the while loop and pass the condition to check that the variable 'mexico' is less than the variable 'us' then, increment in the variable 'yr' by 1 and multiply the variables 'us' and 'mexico' by the following percentage.
- Finally, print the following results with the message.
Using the knowledge in computational language in C++ it is possible to write a code that asks the user to enter a number of gallons.
<h3>Writting the code:</h3>
<em>#include <iostream></em>
<em>using namespace std;</em>
<em>int main()</em>
<em>{</em>
<em> float gallons, cufeet;</em>
<em> cout << "\nEnter quantity in gallons : ";</em>
<em> cin >> gallons;</em>
<em> cufeet = gallons / 7.481;</em>
<em> cout << "Equivalent in cublic feet is " << cufeet << endl;</em>
<em> return 0;</em>
<em />
<em>}</em>
See more about C++ at brainly.com/question/19705654
#SPJ1
Which formula contains an absolute cell reference? =SUM($B$7:$B$9)
A. 5
b. as an unsigned int: 9. Normally a year is 365.25 days which would require 32-bits for an IEEE float.
c. 25