Answer:
c. Copy the executable file to the user’s computer
Explanation:
When you run a c++ program, an executable file (.exe) is created in the same directory with the source file.
To deploy this program on another system, you need to transfer the executable file from the original system where the program was executed to the new system.
The program will work fine without errors.
However, do not mistake the executable file for the source file. The source file ends in .cpp.
Answer:
function myFunction() {
myNumber = Math.floor(Math.random() * 100) + 1 ;
var values = ["Number is even", "Number is odd"] ;
var stringNum = " ";
if (myNumber % 2 === 0){
stringNum += values[0];
} else {
stringNum += values[1];
document.getElementById("demo").innerHTML = stringNum;
}
Explanation:
The javascript source code is used by the browser to make the web application interactive, making a clickable event for the button to generate an H1 header for the web page.
The myFunction is assigned to an onclick event of a html button tag to display if a random number between 1 and 100 is even or odd.
Answer:
<u>for loop code:</u>
int total=0;
for(int i=0;i<10;i++)
{
total + = value[i];
}
Explanation:
By declaration we know that the array is of size 10 which means the index will start from 0.
The variable name to be used to store the sum is given as total
We will initialize total with zero so that no garbage value is used.
For loop will be used to access the elements of array and calculate the sum. The syntax of for loop is given as:
for (initialization; condition; increment/decrement)
{statement}
<u>Code:</u>
int total=0;
for(int i=0;i<10;i++)
{
total + = value[i];
}
Manual power
hope it helps you
Answer:
I'm not 100% on the answers . . .
Explanation:
1. A, 2. C, 3. D, 4. A, 5. D, 6. A & B, 7. False, 8. D, 9. D, 10. D