your function is doing.Now write the source code and execute this to
Using Pseudocode, create your own function that accepts one input parameter and returns a float number. You decide the theme.You should provide the pseudocode and an example call. Be sure…