Answer:
Cyber law is important because it covers all aspects of transactions and behavior related to the internet, the worldwide web and cyberspace.it controls crimes that could pose a major threat to the security and financial health of nations.
Answer:
The expatiation about errors and their solutions is given below in explanation section
Explanation:
Variables and functions Declaration Error:
In this program, variables are not declared properly according to the programming rules.
i.e. the variable " size of color" has space between words, the proper declaration of this variable is to omit the space between the words e.g. sizeOfColor.
Some programming language restricts to declare a variable that starts with numbers. Please write this variable in this way: var dimension1.
fill function is not properly declared and initialized. two errors are in this function. one, this function is using curly bracket "{}" instead of small bracket "()". the second error is, you are passing it string value while it is expecting integer value. the solution is: remove the curly bracket and put a small opening and closing brackets at the place of curly brackets and assign integer value.
in the eclipse function, the way of assigning variables is incorrect. for example the variable "size of color" has space between words and variable "1dimension" is started with a number.
Answer:
We can use comparison operator 'Equals to' (==) to compare two strings.
Explanation:
We can use conditional statement 'if else' to put conditions. If statement contains boolean expression.If statement is followed by else block. If the boolean expression evaluates to true, then the if block of code is executed, otherwise else block of code is executed.
If we want to compare two strings with uppercase, then we can convert the input strings given by users using ToUpper() string function.
For example,
string abc;
string uppercase= abc.ToUpper(); // gives ABC as result
I have written a program using c# as a programming language in a word document and attached the same. Please find. Thank you!
Answer:
Option D: If it is the month of January, then the temperature is cool.
Explanation:
A conditional statement is the one having an if condition in it that says, if the condition is true proceed to the next statement, else not.
Given statements are:
- If it is the month of January, then it is winter.
This can be written as: if (January)⇒Winter
- If it is winter, then the temperature is cool.
This can be written as: if (winter)⇒ Temperature(cool)
So by combining both the statements, the winter clause will be connected and we get:
if(January)⇒Temperature (cool)
This can be written as:
- If it is the month of January, then the temperature is cool.
So, Option D is the correct answer.
i hope it will help you!
Answer:
Following are the code block in the Java Programming Language.
//define recursive function
public static long exponentiation(long x, int n) {
//check the integer variable is equal to the 0.
if (x == 0) {
//then, return 1
return 1;
}
//Otherwise, set else
else {
//set long data type variable
long q = exponentiation(x, n/2);
q *= q;
//check if the remainder is 1
if (n % 2 == 1) {
q *= x;
}
//return the variable
return q;
}
}
Explanation:
<u>Following are the description of the code block</u>.
- Firstly, we define the long data type recursive function.
- Then, set the if conditional statement and return the value 1.
- Otherwise, set the long data type variable 'q' that sore the output of the recursive function.
- Set the if conditional statement and check that the remainder is 1 and return the variable 'q'.