Answer:
Both. Society creates needs, these needs have to be met. Innovative people then meet the challenge because society says “we’ll compensate you if you can figure this out” and so the race begins. When that technology is developed, and the need is met, the technology inspires society to develop new wants and needs and so the cycle begins anew. Consider the biggest technologies in Human history: The wheel, created ancient civilization because it allowed for transport; The clock and calendar, allowing societies to develop schedules for all of their activities; Writing, allowing information to be passed down accurately from generation to generation; Farming, eliminating the need for civilization to be nomadic; Education systems, allowing for the standards of professionalism to be raised and specialized people to be created; fast-forward to the Industrial Age with the Steam Engine and Coal power plant; fast-forward again to the development of flight; fast-forward again to the atomic bomb and the first computer; etc.
Explanation:
Answer:
The factorial of 3=6
Explanation:
Following are the description of the given question
- This is JavaScript code .Here items are the variable that are holding the integer value "3".
- After that there is 2 loop are iterating one is outer and one inner loop.
- When i=1 1<=3 the condition of outer loop is true the control moves the inner loop .
- In the inner loop there is variable result that is initialized by 1 Now checking the condition of inner loop j=i i.e j=1 1>=1 condition of inner loop is true it executed the statement inside the inner loop so result =1 .Now we increment the value of i of the outer loop.
- i=2 2<=3 the condition of outer loop is true the control moves the inner loop .
- In the inner loop there is variable result that is initialized by 1 Now checking the condition of inner loop j=i i.e j=2 2>=1 condition of inner loop is true it executed the statement inside the inner loop so result =2 .Now we increment the value of i of the outer loop.
- Now i=3 3<=3 the condition of outer loop is true the control moves the inner loop .
- In the inner loop there is variable result that is initialized by 1 Now checking the condition of inner loop j=i i.e j=3 3>=1 condition of inner loop is true it executed the statement inside the inner loop so result =6 .Now we increment the value of i of the outer loop.
- i=4 4<=3 the condition of outer loop is false the control moves from the outer loop.
- It print The factorial of 3=6
Data items are "local".
Consider the following example in C++.
class MyClass
{
public:
void setX(int x)
{
this->x = x;
}
private:
int x;
};
We have an integer variable local to the scope of the class declaration, and we have another integer variable local to our setX() function, though we have no global functions, that's something you want to try to avoid as a general rule of thumb.
Its the second one. Hope this helps. :)