Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.10715Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started