Question: please write the PROGRAM in C++ 1. The polar coordinates r and of a point (z,y) in the plane can be computed as follows acos(x/r)

please write the PROGRAM in C++
1. The polar coordinates r and of a point (z,y) in the plane can be computed as follows acos(x/r) if 0 and y>0 0--acos( ifr > 0 and y 0 Write a program which reads the coordinates (floats), (, y) from a the file polar.txt then calls the function polar to computes the polar coordinates. The program then writes the polar coordinates to the output file polarout.txt Your function must use pass by reference not pass by address For example, if polar.txt consists of: 1-2 1-2 then the output file polarout.txt will be: 2.23607 1.10715 2.23607 2.03444 2.23607 -2.03444 2.23607 -1.10715
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
