Answer:
The function code and the formula for the above question is listed below:
Explanation:
Function:
float typing_speed(int Number_of_words, int Time_in_seconds)
{
float time= Time_in_seconds/60;
float speed= Number_of_words/time;
return speed;
}
Formula for this algorithm or program:
Number of words per minute= number of words/ Time(in minutes).
Function Explanation