Press the normal copy or paste shortcut and it will show some PowerPoint shortcuts up
Answer:
The reason that programming is so important is that it directs a computer to complete these commands over and over again, so people do not have to do the task repeatedly. Instead, the software can do it automatically and accurately.
Explanation:
Answer:
The correct answer to this question is: "this program give an error".
int i = 7; //declare a variable(i) and assign value.
while (i>=2) //use loop and check condition.i greater then equal to 2.
{
System.out.print (i +""); //print value of i.
if ((i%3) == 0) //hold remainder
{
i +2; //error.
}
else
{
i/=2; //hold Quotient
}
}
Explanation:
In the above program, there is an error in the if block because it is not the correct way to declare. To use the variable from the correct output we use a variable like this.
Example
int i = 7;
//declare a variable(i) and assign value.
while (i>=2)
//use loop and check condition.i greater then equal to 2.
{
System.out.print (i +""); //print value of i.
if ((i%3) == 0) //hold remainder
{
i =i+2;
}
else
{
i/=2; //hold Quotient
}
}
Output: 732
Answer:
aaaa
Explanation:
We have a function nPrint which return type is void, it means it returns nothing.
we declare the two parameters, one parameter is string type and the second parameter is an integer type.
Then, it has a while loop that executes the statement again and again until the condition not FALSE.
Let dry run the code:
First, call the function nPrint("a", 4) bypassing the value in the argument.
then, the value receives by the parameters, the message contains "a" and n contain 4. After that, while loop checks the condition 4 > 0, which is TRUE and the program starts executing the statement.
The program prints the message on the screen "a" and then decreases the value of n by 1. So, the value of n becomes 3.
The above process repeats for the value of n = 3, 2, 1
and print the message "aaaa".
then, the condition becomes false and the program terminates the loop.
Therefore, the answer is aaaa
Hi!
The Bureau of Labour Statistics is a government site which is specifically made just for this purpose.
By using it, you have access to thousands of jobs with tons of great factual information.
Hopefully, this helps! =)