Homework on Functions - Questions

You have a branching function where you pick the output based on whether the number is even of odd. If X is even you square it, if its odd you add 10.

  1. A function is an engine that needs an input to give you the output.

A) 4
B) 17
C) 0

  1. f(x)=(x/4)-5
1 Like

A function is a computation, where each input is related to exactly one output.
a) f(2)={2^2}. 4

b) f(7)={7+10}. 17

c) f(0)={}. 0

f(x)=(x/4)-5

2 Likes
  1. A function takes an input and through mathematics, provides an output

  2. A) 4 B) 17 C) 0

  3. f(x)=(x/4)-5

2 Likes
  1. A function is a computation in which a input is taken into a mathematical equation to gain an outcome
  2. A. 4
    B. 17
    C. 0
  3. f(x)= x/4-5
2 Likes

A function is a set of instructions which takes input from the user , calculates the data and provides output.

a) 4
b) 17
c) 0

f(x)= (x/4)-5

2 Likes
  1. A function is a mathematical process that takes an input that goes through some defined calculation within the function and then returns the result.

  2. 4, 17, 0

  3. f(x) = {

(x/4) - 5

}

You forgot to subtract by 5. :wink:

1 Like

You right, thanks for the heads up

  1. Describe what a function does in your own words
    A function is a calculation that takes an input and changes it according to what is it told to change it by, then gives the result as an output.

  2. Calculate the output of the following function
    f(x) = {x^2 if x is even
    x+10 if x is odd}
    What will be the output for the following inputs?

  • a) f(2)=4
  • b) f(7)=17
  • c) f(0)=0 (zero is an even number)
  1. Write the definition of a function f that takes an input x, divides it by four and then outputs that result subtracted by 5.

f(x)= {(x/4)-5}

1 Like

A function is a mathmatical computation with inputs and outputs. The input has a variable, and depending on the number value of the variable, changes the output.

a) 4
b) 17
c) 0

  1. f(x) = (x/4)-5
1 Like
  1. Describe what a function does in your own words.

Answer: A function is a mathematical equation that computates an input number that calculates the output of another number.

  1. Calculate the output of the following function
    f(x) = {

x^2 if x is even

x+10 if x is odd

}

Answer: I don’t know. (Spoken in the voice of Jeff Spacoli)

  1. Write the definition of a function f that takes an input x, divides it by four and then outputs that result subtracted by 5.

Answer: f(x) = (x/4)-5

  1. A function executes a computation.
  2. a) 4 b) 17 c) 0
  3. f (x) = (x/4) -5
1 Like

What is the problem that prevents you from knowing? :stuck_out_tongue:

  1. function is a computation that takes input and creates output.
    a. 4
    b.17
    c.0

what happened to the number 3 answer?:thinking:

I don’t know what this ^ symbol means. I attempted to google it and could not find a comprehensive explanation for it.

so 0 gets multiplied by 2, the answer is 0x2=0 :slight_smile:

multiplication of the number

Functions compute the inputted info and give you an output.

a) f(2)=4
b) f(7)=17
c) f(0)=0

f(x)=(x/4)-5

1 Like