Answer:
The explanation to this question is given below in the explanation section.
Explanation:
#include <iostream>
#include <string>
using namespace std;
int main()
{
int score;
cout << "Enter Score: \n";
cin>>score;
if (score == 100)
//whether the value of the score variable is equal to 100
{
cout << "Perfect ";
//If so, it should print “Perfect”
}
else
{
cout << "Nice Try ";
}
}
The factors which should be considered by Daniel are the RAM capacity and the Processor Core of the computer.
Computer games especially racing and football games are usually memory intensive and as such will require a good amount of RAM in other to ensure that the game runs smoothly as the RAM provides a temporary storage required for applications or programs to run smoothly.
Also, the processor core has to be put into consideration, Daniel will need a multi - core processor in other to aid the smooth running of his racing game.
Therefore, the factors that should be considered are the RAM and processor core.
Learn more :brainly.com/question/25010930
Answer:
- import java.util.Random;
- import java.util.Arrays;
- public class Main {
-
- public static void main(String[] args) {
- int n = 10;
- int [] myArray = new int[n];
- buildArray(myArray, n);
- System.out.println(Arrays.toString(myArray));
- }
-
- public static void buildArray(int[] arr, int n){
- for(int i=0; i < arr.length; i++){
- Random rand = new Random();
- arr[i] = rand.nextInt(90) +10;
- }
- }
- }
Explanation:
Firstly, create a method buildArray that take two inputs, an array and an array size (Line 12). In the method, use random nextInt method to repeatedly generate a two digit random number within a for loop that will loop over array size number of times (Line 13-15). The expression rand.nextInt(90) + 10 will generate digits between 10 - 99.
In the main program, call the build array method by using an array and array size as input arguments (Line 8). At last, print the array after calling the buildArray method (Line 9).
Answer:
Calculate the average processing time of the new software
Explanation:
Since the average processing time of the old software is already known, the simplest test to see if the new software is faster than the old software will be to calculate the average processing time for the new software and compare it with the average processing time of the old software.
If the new software have an average processing time lower/smaller than that of the old software; we conclude that the new software is faster.
If the new software have an average processing time higher/larger than that of the old software; we conclude that the old software is faster.
Answer:
Priming.
Explanation:
The brain is the centre of control for all animals. It coordinates the body system, breathing, beating of the heart, memory, gait, speech, sight etc.
Memory is stored in the brain ( the function of the cerebral cortex in the cerebrum). Two types of memory are the long term and the short term memory. The long term memory stores information permanently in the brain, while the short term holds the information for a while and either transfers it to the long term memory or the memory decays.
To retrieve a specific memory from the wide memory of the brain, it activates a strand that leads to the memory, this process is called priming.