Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The coordinates of a point sent to it, according to the amount of vertical and horizontal shift; Write a sub-function called point () that changes
The coordinates of a point sent to it, according to the amount of vertical and horizontal shift; Write a sub-function called point () that changes the sent coordinates of the point and calculates the distance between the old position and the new one according to the formula below.
(Do not forget to fill in the blanks in the Main function. Do not add more.)
SAMPLE PROGRAM
.................................................. ............... / * Prototype * /
int main ()
{
float x = 2.5, y = 2.5, msf;
/ * x is the coordinates of the y point, msf the distance * /
int horizontal = 5, vertical = 4;
/ * horizontal and vertical shift amounts * /
msf = dot (................................);
printf (%. 2f,%. 2f,%. 2f, x, y, msf);
/ * The output of this line is 7.50,6.50,6.40 * /
return 0;
}
OUTPUT
7.50,6.50,6.40
By using C programming language
By using C programming language
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started