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
B considering it’s proper english, we went through this about a week ago
It would often connect via a universal serial bus (USB) cable, so answer [B].
Answer:
(ACD'+BE)
Explanation:
(A+B)(C+B)(D'+B)(ACD'+E)
Product of (A+B)(C+B)
(A+B)(C+B)=AC+AB+BC+B^2 = AC+B(A+C+B)=AC+B
Product of (D'+B)(ACD'+E) with AC+B
(AC+B)(D'+B)(ACD'+E)
(AC+B)(D'+B)=ACD' + ACB +BD +B = ACD'+B(AC+D+1)=ACD'+B
Then we get:
(ACD'+B)(ACD'+E) = ACD'+ACD'E+ACD'B+BE
ACD'(1+E+B)+BE =ACD'+BE