Function errorWrite a program which will calculate the value of x using the following options x=p(1+k)^r where k...