professionals develop programs in small steps.
Test a single function until it works reliably. Then add the next part.
So one possible starting-point is the serial input and how to extract parts of an input-string.
here is the serial input basics tutorial:
1 Like