Homework on Functions - Questions

  1. Describe a set of operation to be applied on the value of an input
  2. a: 4
    b: 17
    c: 0
  3. f(x) = x/4 - 5
1 Like
  1. Function is a process that takes an input, performs some computation and provindes an output.
  2. a) 4, b) 17, c) 0
  3. f(x) = (x/4) - 5
1 Like
Describe what a function does in your own words

Function is form of a math computation where there is an input and it solves to give an output

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

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
  1. Describe what a function does in your own words
    A function gets input parameters and performs an action with these parameters (calculation / string manipulation / validation checks /…) and returns a result.

  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) = {
return (x/4) - 5;
}

2 Likes
  1. A function is a computation. You give a function a number (input) , it calculates then gives you another number (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 fix mathematical operation. You give a input and the function calculates it and gives
    you an output

  2. Calculate the output of the following function
    a) f(x)=2^2= 4
    b) f(x)=7+10= 17
    c) f(x)=0^2= 0

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

2 Likes
  1. A function is a math equation that enables you to insert any input(x) to get 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 is the formula that determines the type of action for a set of inputs

a= 4
b=17
c=0

f(x)={0.25)+(-5)

1 Like
  1. A functions takes an input and produce an ouput related with that input.
    2 a) 4
    b) 17
    c) 0

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

1 Like
  1. Describe what a function does in your own words
    A function receives input and gives 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)-undefined
  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
  1. A function is a mathematical operation applied on an input which produces an output.
  2. (a). Output = 4
    (b). Output = 17
    ©. Output = 0
  3. f(x) = {
    (x/4) - 5
    }
1 Like
  1. A function is a computational structure that takes data as an input, performs a specific computation on it, and then produces an output.

  2. a) 4 b) 17 c) 0

  3. f(x) {
    return (x / 4) - 5;
    }

1 Like

1- A Function is a computation (it get an input, do some calculation, then gives an output)

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

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

1 Like

Homework on Functions - Questions

  1. Describe what a function does in your own words

Function is computing program in which we can input a number, function does it calculation based on the established rules and gives back the 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 a computation. It is composed of an input and an output. In a function, we insert an input, we do the calculation and we get the output.

  2. a) 4; b) 17; c) 0

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

A function takes something as an input, performs a calculation on it and then returns the output.

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

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 makes a computation to an input.

  2. 4
    17
    0

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

1 Like

1 function give an imput of what an outpur have to done or results
2. a = 4
b = 49
c= 0

  1. a Function is a mathamatical input for a computational output.
    2.a. = 4
    2.b. = 17
    2.c. = 0
  2. f(x) = {(x/4)-5}
1 Like
  1. A function is an operation which optionally takes one or more arguments as input, and evaluates to some output.
  • a) f(2) = 4
  • b) f(7) = 17
  • c) f(0) = 0
  1. f(x) = (x / 4) - 5
1 Like