Assignment task: We have the uses the app PROCESSING, and only can use PROCESSING language. Also have to put this all in one sketch, can't be multiple files, only one
You will create some custom functions to perform a task. You should create each custom function and run it in a single sketch. Please do not submit this as multiple files.
Part 1 - Fahrenheit to Celsius
A new function that will take a temperature in Fahrenheit and return the equivalent value in Celsius.
BONUS - Create another user-defined function that converts Kelvin to Fahrenheit
Part 2 - Fibonacci
A new function that will take a single value, and return the corresponding value in the Fibonacci sequence
BONUS - Create another user-defined function that takes an integer value as a parameter that returns the number of the prior Fibonacci number. For example, if I call the function with 7, I would expect to see 5 as the answer
Part 3 - Sum of numbers
A new function that will take a single integer value as a parameter, and return the sum of all number from 1 up to that number
Include logic to return the value of -1 if the argument passed to the function is less than 1
Part 4 - Prime number validation
New function that will take a single integer value as a parameter, and return true if that number is prime and false otherwise