Unless you are into recursion, the first statement in routine inputData() shouldn't be ... inputData().
I think tLeft - tRight is invariably negative, so have a look at that conditional statement.
In routine bisect(), in the bisecting case you should be comparing function signs at either left and mid or mid and right, not left and right as you have at present.
On the non-c++ side, you are an engineering student: put your input in consistent and correct mass, length and time units, preferably kg, m, s. Your expression for n is also wrong: it's missing brackets round the denominator (2*m). And you are using the damped frequency S BEFORE you actually work it out.
Please PUT YOUR CODE IN CODE TAGS: this is not the first time you've been asked to do that.