So I have put together my code for an assignment for a C++ class that I am in when I came into a little of a hurdle. So my code takes the input perfectly first time around (