Question: Hello I need help with this simple C++ program. I need to the contents of the void function in int main() as well make the

Hello I need help with this simple C++ program. I need to the contents of the void function in int main() as well make the program more simple. Thanks.

Code:

#include #include using namespace std;

void position(float x , float y){ cout<0) cout<<"("<0) cout<<"("<0 && y>0) cout<<"("<0) cout<<"("<0 && y<0) cout<<"("<

int main(){ float XArr[] = {1.2,-5.0,-0.8,0.0,-4.5,0.1,0.0,0.0,-1.6}; float YArr[] = {1.8,0.0,3.0,-2.0,-7.2,-3.8,12.2,0.0,0.0}; int size = sizeof(XArr)/sizeof(float); for(int i=0;i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!