Exercise 2 - Function Call

1 Creating a Function and Making a Function Call

Write a function, AddTen, that returns the input number plus the Integer 10.

Make a function call to AddTen with the input 3.5.

Try calling your function by writing
"AddTen(number)" as shown below.


1.1.1 Call AddTen directly

1.1.2 Simulation of AddTenCall

Get the value of res at time=0, after which we plot the variable.