That is none other than a "Trojan Horse"
Answer:
Written in C++
void number(int n){
if(n%2 == 0)
cout<<2 * n;
else
cout<<5 * n;
}
Explanation:
The programming language is not stated.
However, I answered using C++
This line defines the function as void
void number(int n){
This line checks if the number is even
if(n%2 == 0)
If yes, it doubles the number and prints the output
cout<<2 * n;
If otherwise,
else
It multiplies the number by 5 and prints the output
cout<<5 * n;
}
To call the function from main, use:
number(n);
Note than n must be declared as integer
See attachment
Answer:
A. SmartArt
Explanation:
SmartArt is a graphical tool used to visually communicate information.
#4 is true
We use pseudocode to help us understand code.
#5 is false
Strings are surrounded by quotes, integers are not.
#6 is 100.
Integers are numbers with no decimal places.