Write a C++ code

Job ID: 33665695

Budget: $10 – $30 USD

The user must input an equation for up to the fifth order AS A STRING
The computer must then divide it after each plus or minus sign
and check that there is always a number after the plus or minus sign
the computer must then divide each variable after the power sign and put it in array (if there are no power signs after the x or no number after the power sign then the computer should give an error)
then order this array to get the highest order and know which polynomial equation to use
The computer must then divide before each x to get all the coefficients to and put the minus in mind to be able to do the mathematical equations
should have equations to solve for up to the 5th order
so basically the user must enter the equation, the computer must make sure the format is correct, then choose the correct mathematical operation and get the real AND complex roots