Here is some python code for differential equations. The first python code is an example to use as a reference when completing the rest.
Your job:
Rumor Spread: This program assumes all necessary information is contained within the function, so there are no arguments to specify.
initialize the values of k and Rumor
determine the appropriate arguments for the range function.
determine the update formula for calculating the new value of R.
create the function call and run the program.
Coffee Cooling: This program is designed to allow you to run it with different values of k and dt, hence values for those two variables will be the required arguments for the function.
initialize the values of t, T, and n (remember that n must be integer!)
enter the update values for t and T
create the function call and run the program for the values of k and dt requested.