Write a function called dayplan(temperature,work). The Function should at first check if it is dealing with realistic values. Thereby temperature∈[-20,40] and work∈{´Yes´, ´No´}. For realistic values the function should give out these values:
When temperature>=20 and job==´Yes´, then "Eat ice cream"
When temperature>=20 and job==´No´, then "Sea"
When temperature >20 and job ==´Yes´, then "Shopping"
When temperature<20 and job==´No´, then "Bed"