# Define a function CoordTransform() that transforms its first two input parameters xVal and yVal into two output parameters xValNew and yValNew. The function returns void. The transformation is new = (old + 1) * 2. Ex: If xVal = 3 and yVal = 4, then xValNew is 8 and yValNew is 10.#include <iostream>using namespace std;/* Your solution goes here */int main() {int xValNew;int yValNew;int xValUser;int yValUser;cin >> xValUser;cin >> yValUser;CoordTransform(xValUser, yValUser, xValNew, yValNew);cout << "(" << xValUser << ", " << yValUser << ") becomes (" << xValNew << ", " << yValNew << ")" << endl;return 0;}Please help me with this problem using c++.

Question
Asked Nov 9, 2019
452 views

Define a function CoordTransform() that transforms its first two input parameters xVal and yVal into two output parameters xValNew and yValNew. The function returns void. The transformation is new = (old + 1) * 2. Ex: If xVal = 3 and yVal = 4, then xValNew is 8 and yValNew is 10.

#include <iostream>
using namespace std;

/* Your solution goes here */

int main() {
int xValNew;
int yValNew;
int xValUser;
int yValUser;

cin >> xValUser;
cin >> yValUser;

CoordTransform(xValUser, yValUser, xValNew, yValNew);
cout << "(" << xValUser << ", " << yValUser << ") becomes (" << xValNew << ", " << yValNew << ")" << endl;

return 0;
}

check_circle

Step 1

This program takes two inputs from the user. The CoordTransform() function is used to transform the input values then it displays the transformed values.

The CoordTransform() function is void type, hence it didn’t return any value.

The CoordTransform() function has four arguments two input parameters and two output parameters.

The two output parameters of The CoordTransform() ...

### Want to see the full answer?

See Solution

#### Want to see this answer and more?

Solutions are written by subject experts who are available 24/7. Questions are typically answered within 1 hour.*

See Solution
*Response times may vary by subject and question.
Tagged in