Welcome to LQ!
Just think about the problem logically...
1. Write down the math equation which includes the input variable (mph) and produces the output value (fps).
2. Learn how to use the facilities of your favored scripting language to express that equation.
3. Put in the input value (mph), run the script and get the output value.
So first, since this is a simple units conversion the math will look something like this...
Code:
FPS = k X MPH
where k is a proportionality constant - the math is left to you...
So it really involves a single multiplication operation.
In a shell script multiplication is indicated by a * character.
Variable values are assigned by simply setting a name equal to a value.
Writing something to the output is very easy.
So, overall a simple script might be something like this...
Code:
#!/bin/bash
MPH=60
k=enter the value from the math...
FPS=0
#Now do the math in terms recognized by the shell (it will require some context characters not shown here)..
FPS=k*MPH
#And write the results out here... you'll figure out how easily enough!
You can find the missing pieces here,
Bash Beginners Guide. See if you can put it all together and let us know if you get stuck!
Good luck!