Question: Write a program to call a function GetCoordinates that prompts the user to input the two coordinates, X and Y of a point A .
Write a program to call a function GetCoordinates that prompts the user to input the two coordinates, X and Y of a point A Then the program calls a function GeneratePoint to generate randomly the coordinates X and Y of a new point B as follows: X in the range x and x Y in the range y and y At the end the program should call the function Display to output the coordinates of the two points A and B
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
