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++.
/* 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++.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here