Im pretty sure the answer is PWD
The correct answers are:
<span>E-commerce platformsMobile
Applications
Online point-of-sales systems
Source and explanation: https://goo.gl/guJKC9
</span>
Is this computer science?
If so, then the function you would need for your code is this...
_____
if (someValue%2 != 0) {
value *= -1;
}
_____
//basically <u>number%2 == 0</u> means even so "!" means false so "not even" meaning "odd."
Assuming you are doing an array list (given a set value) or a for-loop with an
int someValue = Integer.parseInt(args[i]); inside (not given a set value and not restricted)
Otherwise ignore me....lol
Answer:
class Foo:
def F(self, n):
if n == 1:
return 1
return self.F(n - 1) + 3 * n - 2
Explanation:
This should cover part a to this question. The thing I'm not sure on is they use the term "method" which in python technically means a class function...but then list one argument with the function call which makes me think it is possibly just supposed to be a regular function. Which would be the following snippet. It would depend on if you are using classes or not yet in your coding class.
def F(n):
if n == 1:
return 1
return F(n - 1) + 3 * n - 2
Play around with it and look into python "lists" and "for loops" for part c. Part b I'm not sure what kind of example they want since I'm not in that class. Good luck!