asked 132k views
3 votes
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.

asked
User LuckyHK
by
8.1k points

1 Answer

3 votes
C# program code:

function void coordtransform (int xval, int yval)
{
int xvalnew = transform(xval)
int yvalnew = transfomr(yval)
}

Step-by-step explanation:
When we define new function we need to follow the rule:
function return_value name_of_function (input variables)

Inside of the code above we have another function that is called transform() and it has only one input parameter.
answered
User Von Lion
by
8.7k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.