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 X1 and Y1 of a new point B as follows: X1 in the range x and x+40. Y1 in the range y and y +20 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!