Homework on Functions - Questions

  1. Takes the input, does certain calculation and spits out the output
  2. a) 4 b)17 c)0
    3.f(x)=x/4-5
1 Like
  1. Describe what a function does in your own words

A function executes a line or lines of code that are contained in it when called.

  1. 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
  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
  1. A function is something that has an input that can be applied some particular operations to get some desired output.

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

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

A function takes an input and gives a programmed output

  1. 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
  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
  1. A function is something that will take an input, and based on the assigned input, it will produce an output.

A. F(2) = 2(2)=4
B. F(7) = 2(7)=14
C. F(0) = 2(0)=0

  1. F(x) = [(x/4)-5]

7 is odd number, f(7) = 7+10 = 17.

  1. A function takes in an input and returns an output after computing it.

  2. f(2) = 4, f(7) = 17, f(0) = 0.

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

1 Like

Answer 1 - A Function works as a computation/mathematical calculator where it takes inputs and then provides output based in the definition inside functions

Answer 2 -
a) - 4
b) - 17
c) 0

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

2 Likes
  1. A function is the set of instructions or rules that should be applied to the input value to get a specific output.

  2. a) 4
    b) 17
    c) 0

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

1 Like

I see that now. Makes complete sense. Thank you

Thanks Etienne

Regards

  1. Describe what a function does in your own words

A funtion is a math equation where an input in changed by a variable to get an output.

  1. Calculate the output of the following function

What will be the output for the following inputs?

Im not gonna pretend I was smart enough to come up with the answers on my own. Reading other people answers I now understanding how the functions work. multiply the number by 2 if x is an even number and add 10 if x is an odd 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.

Copied and pasted this. I always hated math in school and was never very good at it. Reading the answer i can understand how people got there but i couldnt get there on my own.
f(x) = x/4 - 5

Homework on Functions - Questions and Answers

  1. Describe what a function does in your own words
    A function allows for performing a specific mathematical computation on a given input
  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
  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

1: A function processes an input into an output.

2a: 4
2b: 17
2c: 0

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

1 Like
  1. Describe what a function does in your own words
  • is a basic mathematical calculation that works by taking an input number and outputs a different number
  1. 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
  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
  1. A function is a computation that takes an input and gives an output.
  2. a.4
    b.17
    c.0
  3. f (x) = (x/4) -5
1 Like
  1. A computation that follows mathamatical rules.
  2. a. 4 b. 17 c. 0
  3. x/4-5
1 Like
  1. A function is an equation which receives an input, and provides an output.
  2. a) 4, b) 17, c) 0
  3. f(x) = x/4-5
1 Like
  1. Describe what a function does in your own words
    -> a function maps an input to one 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
  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
  1. Describe what a function does in your own words
    Function is a computation of an input which gives a result or 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
  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

2 Likes