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 =...


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
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="">< ")"=""><>


return 0;
}


Please help me with this problem using c++.



Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here