Please answer the following problem in C program only Write
Please answer the following problem in C program only.
Write two C functions, named dist () and angle (), respectively, to be used in converting the rectangular (x, y) coordinates of a point into polar form. That is given an x and y position on a Cartesian coordinate system, as illustrated in Figure 6.11, the dist () function must Calculate and return the distance from the origin, r, and the angle () function must calculate and return the angle from the x-axis, 0.specified by the point. The values of r and theta are referred to as the point\'s polar coordinates. Use the relationships that r = squareroot x^2 + y^2 theta = tan^- 1 (y/x), x notequalto 0 Correspondence between polar (distance, r and angle, theta) and Cartesian (x, y) coordinatesSolution
String translation(String temp)
temporary worker.toCharArray();
while(i<k-3)
if(storefinal.matches(\"AUU\")||storefinal.matches(\"AUC\")||storefinal.matches(\"AUA\"))
if(storefinal.matches(\"AUG\"))
if(storefinal.matches(\"GUU\")||storefinal.matches(\"GUC\")||storefinal.matches(\"GUA\")||storefinal.matches(\"GUG\"))
if(storefinal.matches(\"UCU\")||storefinal.matches(\"UCC\")||storefinal.matches(\"UCA\")||storefinal.matches(\"UCG\"))
if(storefinal.matches(\"AGA\")||storefinal.matches(\"AGG\"))
if(storefinal.matches(\"AGU\")||storefinal.matches(\"AGC\"))
if(storefinal.matches(\"UGG\"))
if(storefinal.matches(\"UGU\")||storefinal.matches(\"UGC\"))
if(storefinal.matches(\"GAA\")||storefinal.matches(\"GAG\"))
if(storefinal.matches(\"GAU\")||storefinal.matches(\"GAC\"))
if(storefinal.matches(\"AAA\")||storefinal.matches(\"AAG\"))
if(storefinal.matches(\"AAU\")||storefinal.matches(\"AAC\"))
if(storefinal.matches(\"CAA\")||storefinal.matches(\"CAG\"))
if(storefinal.matches(\"CAU\")||storefinal.matches(\"CAC\"))
if(storefinal.matches(\"UAU\")||storefinal.matches(\"UAC\"))
if(storefinal.matches(\"CCG\")||storefinal.matches(\"CCA\")||storefinal.matches(\"CCC\")||storefinal.matches(\"CCU\"))
if(storefinal.matches(\"ACG\")||storefinal.matches(\"ACA\")||storefinal.matches(\"ACC\")||storefinal.matches(\"ACU\"))
if(storefinal.matches(\"GCG\")||storefinal.matches(\"GCA\")||storefinal.matches(\"GCC\")||storefinal.matches(\"GCU\"))
if(storefinal.matches(\"CGG\")||storefinal.matches(\"CGA\")||storefinal.matches(\"CGC\")||storefinal.matches(\"CGU\"))
if(storefinal.matches(\"GGG\")||storefinal.matches(\"GGA\")||storefinal.matches(\"GGC\")||storefinal.matches(\"GGU\"))
if(storefinal.matches(\"UAG\")||storefinal.matches(\"UAA\")||storefinal.matches(\"UGA\"))
i++;
}
String finalreturn = new String(pro);
come finalreturn;
}
