Answer:
#include <iostream>
#include <cstdlib>
using namespace std;
int main() {
int[] array = new int[10];
int index = 0;
while(index < array.size()){
int number = (rand() % 100) + 1;
for (int i = 0; i < 1; i++) {
array[index] = number;
cout<< "Position "<< index << "of the array = "<< number << endl;
++index;
}
}
}
Explanation:
The while loop in the source code loops over a set of code ten times, The for loop only loops once to add the generated random number between 1 and 100 to the array of size 10. At the end of the for loop, the index location and the item of the array is printed out on the screen. The random number is generated from the 'rand()' function of the C++ standard library.
- They now have color screens
- Touch screen
- Higher bandwidth due to different radio
- More memory and processing power
- Ability to install and run apps
One could joke that battery life has not improved...
It is advised to fully charge the battery of a laptop before using it for the first time is a true statement.
<h3>Is it advised to fully charge the battery of a laptop before using it for the first time?</h3>
The first charge of any system is one that must and will always be the most important charge.
Note that if a person is said to purchase a new laptop, the person will need to charge their battery for at least 24 hours to be sure that it gets a full charge on its first attempt.
Note that this is one that tends to give one's battery a complete charge in course of its first charge and it will prolong its life.
Therefore, It is advised to fully charge the battery of a laptop before using it for the first time is a true statement.
Learn more about laptop from
brainly.com/question/16045385
#SPJ1
Answer:
Option B) Procedure Fourth (n), which returns the value n4
Explanation:
it the only one that makes sense because procedure 1, 2, and 3 return values n1, n2, and n3, it makes sense that the fourth procedure would return a value of n4.