Question: Need the R code for the following problem Set up an `if`/`else` statement (one for each bullet) that * defines a variable `x` to equal
Need the R code for the following problem
Set up an `if`/`else` statement (one for each bullet) that
* defines a variable `x` to equal "positive" if `num` is 0 or more and "negative" if `num` is less than 0.
* defines a variable `x` to equal "tiny" if `num` is a value between -8 and 8 (inclusive) and "huge" otherwise.
* defines a variable `x` to equal "small even" if `num` is an even number from -6 to 6 (inclusive) and "not small even" otherwise
* defines a variable `x` to equal "extraordinary" if `num` is evenly divisible by either 2, 3, or 5 and "ordinary" otherwise.
Note: a value `num` is evenly divisible by a number `y` when `num%%y` equals 0. The `%%` symbol stands for "the remainder after dividing by". For example `7%%3` equals 1 since 1 is the remainder after 7 is divided by 3.
Left-arrow `num` to be -6. For each of four bullets, run your code, then print to the screen the contents of `x` to verify that it equals the intended value. Then, do the same for when `num` is left-arrowed to be 29.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
