Homework on Functions - Questions

  1. Describe what a function does in your own words
    It’s a piece of functionality that can be called later, a bit like a black box that has input then it performs some function (does some processing) then returns an output

  2. Calculate the output of the following function

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. Description of rules that changed the output.
  2. 4,17,0
  3. f(x)=(x/4)-5
2 Likes

I was stuck with this one too… it’s a multiplier, so 5^2 like 5 to the power of 2

  1. A function is one or more rules that are applied to an input and yield an output

  • a) f(2)=2x2=4
  • b) f(7)=7+10=17
  • c) f(0)=0x0=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 basically a computation that has an input and then receives an output.

2a. Since x is the input value, the output will be 4.
b. Since 7 is the input value and is an odd number, the output value will be 17.
c. Since 0 is the input value, the output value will be 0.

  1. f(x) = {x /4 - 5}
    F is the function. X is the input value which divides 4 and then subtracts 5.
1 Like
  1. A function is an equation that take an input (x) and give an output
  2. f(2)=4, f(7)=17, f(0)=0
  3. f(x) = x/4-5
1 Like
1. Describe what a function does in your own words
- A function takes input values and performs a defined mathematical task on them to produce an output value.

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
3. Write the definition of a function f that takes an input x, divides it by four, and then outputs that result subtracted by 5.
c) f(0) = {(x/4) -5}

1 Like
  1. Describe what a function does in your own words. A function is a computation. It takes some kind of input, applies a calculation of some kind, and returns an output.

  2. f(x) = {
    x^2 if x is even
    x+10 if x is odd

}
a) f(2) = 2^2 = 4
b) f(7) = 7+10 = 17
c) f(0) = 0^2 = 0

  1. f(x) = {
    (x/4)-5
    }
1 Like
  1. Q: Describe what a function does in your own words.
    A: A function is as formula that takes a set of inputs and determines an output.

  2. Q: 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: a) f(2) = 4
b) f(7) = 17
c) f(0) = 0

  1. Q: Write the definition of a function f that takes an input x, divides it by four and then outputs that result subtracted by 5.
    A: f(x) = x/4 - 5
1 Like
  1. Describe what a function does in your own words - .a function is a compuation - input/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

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

1 Like
  1. functions means computation, you give computer a input , it gives an output.
  2. f(2) = 2^2 = 4,f(7)= 7+10=17,f(0)=0
  3. f(x)= x/4-5
1 Like
  • Function transforms an input by computing logic as per its definition
  • a) 4
    b) 17
    c) 0
  • f(x) =(x/4)-5
1 Like
  1. A function is a mathmatical equation in which an input value to a variable is used to solve a problem

  2. a) 4
    b) 17
    c) 0

1 Like

missed the last question in my original response.

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

1- Function is a means to define a specific computation.

2 a- 4
b- 17
c- 0

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

  1. f(x) = x/4 - 5 is the right answer, f that takes an input x, divides it by four and then outputs that result subtracted by 5.

1.a function follows the instructions given and based upon the inputs it is give.

  1. a. 4
    b.17
    c. 0

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

1 Like
  1. Describe what a function does in your own words. It’s a computation that includes an input which produces 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
1 Like
  1. A function is a mathematical equation with variables

  2. a)4, b) 17, c)

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

1 Like
  1. A function takes an input, calculates something with that input and gives then the result as an output.
  2. a) 4 b) 17 c) 0

f(x) = x/4-5

1 Like