Question: Task: please write a program to implement the following requirements: A user will input five pairs of x , y coordinates. The input must be

Task: please write a program to implement the following requirements: A user will input five pairs of x, y coordinates. The input must be a two-dimensional array with five rows and two columns. Please use Macros to save the number of rows and columns. Your program should output the x, y pair which has the largest x value. Your program should output the x, y pair which has the largest y value. The following is an example of the program output. ./a.out Please input the No.1 point: 01 Please input the No.2 point: 10-2 Please input the No.3 point: 511 Please input the No.4 point: -13 Please input the No.5 point: 411 The point which has the largest x value is : (10-2) The point which has the largest y value is : (411) PP05

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!